X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5cc0eba3f10da37a14e8f27f04c7695505b4c684..757a1aaa850bf48e45ee1dd2225cda1c9fa47d73:/app/models/user.rb 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)) }