X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b68b29b43c2e385af05d81815e347c2ab22ed269..ed84930283982062753e8fbd7323239d70dd1611:/app/models/issue.rb diff --git a/app/models/issue.rb b/app/models/issue.rb index 0abc27063..690a02477 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -1,6 +1,7 @@ class Issue < ActiveRecord::Base belongs_to :reportable, :polymorphic => true belongs_to :user, :class_name => "User", :foreign_key => :reported_user_id + belongs_to :user_updated, :class_name => "User", :foreign_key => :updated_by has_many :reports, dependent: :destroy has_many :comments, :class_name => "IssueComment", dependent: :destroy