]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/map_bug_comment.rb
Merge branch 'master' into openstreetbugs
[rails.git] / app / models / map_bug_comment.rb
index 945b1b2f755f9d21192e81a9418c2c40dea59951..166e3fb42927f2308a025751c4dbb62a61681abf 100644 (file)
@@ -5,6 +5,8 @@ class MapBugComment < ActiveRecord::Base
   belongs_to :map_bug, :foreign_key => 'bug_id'
   belongs_to :user, :foreign_key => 'commenter_id'
 
+   validates_inclusion_of :event, :in => [ "opened", "closed", "reopened", "commented", "hidden" ]
+
   validates_presence_of :id, :on => :update
   validates_uniqueness_of :id
   validates_presence_of :visible