Remove unused created_by scope from Proposal
The "created_by" scope in Proposal is no longer used anywhere in the code. It was introduced in77dd604and its last usage was dropped in commit64258baf97("Refactor getting the public activity information").
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user