Remove unused by_official_level scope from Proposal

The "by_official_level" scope in Proposal is no longer used anywhere in
the code. Its last use was removed in commit 9f1f912d84 ("Remove
official level filter from advanced search").
This commit is contained in:
taitus
2025-10-24 14:23:19 +02:00
parent 4183734468
commit 0332160627

View File

@@ -2,10 +2,7 @@ module Filterable
extend ActiveSupport::Concern
included do
scope :by_date_range, ->(date_range) { where(created_at: date_range) }
scope :by_official_level, ->(official_level) do
where(users: { official_level: official_level }).joins(:author)
end
scope :by_date_range, ->(date_range) { where(created_at: date_range) }
end
class_methods do