X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d49922eb630abb73c7faffb650ab97b3c5d94c52..683722ed5c1b3224a04c23b4d175a0638964f713:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index 4a36b3e61..3d262fd25 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -27,6 +27,8 @@ class User < ActiveRecord::Base has_many :roles, :class_name => "UserRole" has_many :issues + has_many :issue_comments + has_many :reports scope :visible, -> { where(:status => %w(pending active confirmed)) }