X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c2f23fea6a7821a4ad4c97fd65744b138ec86267..edd49e85823079d6de19cbc9f89c6abc0568382b:/app/models/user_block.rb diff --git a/app/models/user_block.rb b/app/models/user_block.rb index f56f87b9d..92cee16cd 100644 --- a/app/models/user_block.rb +++ b/app/models/user_block.rb @@ -26,13 +26,13 @@ class UserBlock < ActiveRecord::Base validate :moderator_permissions - validates :reason, :invalid_chars => true + validates :reason, :characters => true belongs_to :user, :class_name => "User", :foreign_key => :user_id belongs_to :creator, :class_name => "User", :foreign_key => :creator_id belongs_to :revoker, :class_name => "User", :foreign_key => :revoker_id - PERIODS = USER_BLOCK_PERIODS + PERIODS = Settings.user_block_periods ## # scope to match active blocks