X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1f2ac59d1d24d75c510412e63070d83af13c6757..b4dbf6233c3785e62af5bd313381f1844e5bbc19:/app/models/user_block.rb diff --git a/app/models/user_block.rb b/app/models/user_block.rb index 9f32862af..02af385a7 100644 --- a/app/models/user_block.rb +++ b/app/models/user_block.rb @@ -26,6 +26,7 @@ class UserBlock < ActiveRecord::Base validate :moderator_permissions + validates :reason, :characters => true belongs_to :user, :class_name => "User", :foreign_key => :user_id belongs_to :creator, :class_name => "User", :foreign_key => :creator_id