X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/683722ed5c1b3224a04c23b4d175a0638964f713..f3519e97819cc5a5e2c2f9931c7d565b8e5227c8:/app/models/issue_comment.rb diff --git a/app/models/issue_comment.rb b/app/models/issue_comment.rb index 455fb040b..866a85b84 100644 --- a/app/models/issue_comment.rb +++ b/app/models/issue_comment.rb @@ -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