- 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" ]
+ belongs_to :map_bug, :foreign_key => :bug_id
+ belongs_to :author, :class_name => "User", :foreign_key => :author_id