X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/39b60219fe37d1e3f94555a053895adc1eee179c..fd7526857b4df6eff3cf09dc02da2df0a9797378:/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