]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_block.rb
Merge pull request #1151 from polarbearing/patch-1
[rails.git] / app / models / user_block.rb
index 9f32862af52546bfbf4542599d38916af0ca76e8..02af385a7a09389c88aa722ca8766054e3f2f29f 100644 (file)
@@ -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