Remove unused Poll.unattached scope (#33350)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2024-12-19 08:10:06 +00:00
1 parent d014024dc5
commit aee64a465c
2 files changed
-9

No files matched your search

-1
View File
@@ -40,7 +40,6 @@ class Poll < ApplicationRecord
validates_with PollValidator, on: :create, if: :local?
scope :attached, -> { where.not(status_id: nil) }
scope :unattached, -> { where(status_id: nil) }
before_validation :prepare_options, if: :local?
before_validation :prepare_votes_count