diff --git a/app/models/poll.rb b/app/models/poll.rb index 8012f2fcd..71f031a56 100644 --- a/app/models/poll.rb +++ b/app/models/poll.rb @@ -71,7 +71,6 @@ class Poll < ApplicationRecord scope :expired, -> { where(ends_at: ...Time.current) } scope :recounting, -> { where(ends_at: (RECOUNT_DURATION.ago)...Time.current) } scope :published, -> { where(published: true) } - scope :by_geozone_id, ->(geozone_id) { where(geozones: { id: geozone_id }.joins(:geozones)) } scope :public_for_api, -> { all } scope :not_budget, -> { where(budget_id: nil) } scope :created_by_admin, -> { where(related_type: nil) }