Remove unused by_author scope from Poll::Recount
The "by_author" scope in Poll::Recount is no longer used anywhere in the
code. It was introduced in commit 6c297ae789 ("Add Poll Recount model,
factory and spec") but has never been referenced since.
This commit is contained in:
@@ -12,8 +12,6 @@ class Poll::Recount < ApplicationRecord
|
|||||||
scope :booth, -> { where(origin: "booth") }
|
scope :booth, -> { where(origin: "booth") }
|
||||||
scope :letter, -> { where(origin: "letter") }
|
scope :letter, -> { where(origin: "letter") }
|
||||||
|
|
||||||
scope :by_author, ->(author_id) { where(author_id: author_id) }
|
|
||||||
|
|
||||||
before_save :update_logs
|
before_save :update_logs
|
||||||
|
|
||||||
def update_logs
|
def update_logs
|
||||||
|
|||||||
Reference in New Issue
Block a user