diff --git a/app/models/proposal.rb b/app/models/proposal.rb index ef4bcbfb5..8359afd4e 100644 --- a/app/models/proposal.rb +++ b/app/models/proposal.rb @@ -89,7 +89,6 @@ class Proposal < ApplicationRecord scope :draft, -> { excluding(published) } scope :not_supported_by_user, ->(user) { where.not(id: user.find_voted_items(votable_type: "Proposal")) } - scope :created_by, ->(author) { where(author: author) } def publish update!(published_at: Time.current)