X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/39b60219fe37d1e3f94555a053895adc1eee179c..f2c57e0d71bbcb407ef43ee7c8c8458c76faeab6:/app/models/issue.rb diff --git a/app/models/issue.rb b/app/models/issue.rb index c0707728e..c94fe56a7 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -46,7 +46,7 @@ class Issue < ApplicationRecord before_validation :set_reported_user - scope :with_status, ->(issue_status) { where(:status => statuses[issue_status]) } + scope :with_status, ->(issue_status) { where(:status => issue_status) } scope :visible_to, ->(user) { where(:assigned_role => user.roles.map(&:role)) } def read_reports