X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d1d4f8192da5a266cddb17bb8970b2b04387888c..f3519e97819cc5a5e2c2f9931c7d565b8e5227c8:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index 866074766..1c38ea1cc 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -27,6 +27,7 @@ class User < ActiveRecord::Base has_many :roles, :class_name => "UserRole" has_many :issues, :class_name => "Issue", :foreign_key => :reported_user_id + has_one :issue, :class_name => "Issue", :foreign_key => :updated_by has_many :issue_comments has_many :reports