0
0
Fork 0

Remove unused Poll.unattached scope (#33350)

This commit is contained in:
Matt Jankowski 2024-12-19 03:10:06 -05:00 committed by GitHub
parent d014024dc5
commit aee64a465c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 9 deletions

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