X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5add3cf67145e1d3ccefcfb6095b8e56321e2057..b68b29b43c2e385af05d81815e347c2ab22ed269:/app/models/report.rb diff --git a/app/models/report.rb b/app/models/report.rb index 5b238dcac..f997215a8 100644 --- a/app/models/report.rb +++ b/app/models/report.rb @@ -1,5 +1,5 @@ class Report < ActiveRecord::Base belongs_to :issue - belongs_to :user + belongs_to :user, :class_name => "User", :foreign_key => :reporter_user_id end