]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/issue_comment.rb
Added a few more tests
[rails.git] / app / models / issue_comment.rb
index 455fb040bc73c7c102de27697fac01cb119b6a3b..866a85b84aaa22278131446bd66f3e9f43e17e16 100644 (file)
@@ -1,6 +1,6 @@
 class IssueComment < ActiveRecord::Base
        belongs_to :issue
-       belongs_to :user
+       belongs_to :user, :class_name => "User", :foreign_key => :commenter_user_id
 
        validates :body, :presence => true
 end