Removes unnecesary scope

This commit is contained in:
decabeza
2018-07-26 17:53:26 +02:00
parent 786a3949fd
commit 69d67940d3

View File

@@ -10,7 +10,6 @@ class ProposalNotification < ActiveRecord::Base
validates :proposal, presence: true
validate :minimum_interval
scope :with_hidden, -> { all }
scope :public_for_api, -> { where(proposal_id: Proposal.public_for_api.pluck(:id)) }
scope :sort_by_created_at, -> { reorder(created_at: :desc) }
scope :sort_by_moderated, -> { reorder(moderated: :desc) }