X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/69c1f6d1862aad00f80a0d2e32dbbe70aba65649..c3ad6aa2923c03aeeea0b57033b0a9238d262aa2:/app/models/user.rb?ds=inline diff --git a/app/models/user.rb b/app/models/user.rb index 1c38ea1cc..6fbf8eecb 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -29,7 +29,7 @@ class User < ActiveRecord::Base 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 scope :visible, -> { where(:status => %w(pending active confirmed)) }