mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 15:58:50 +00:00
Remove un-needed Poll.attached scope (#33368)
This commit is contained in:
@@ -39,8 +39,6 @@ class Poll < ApplicationRecord
|
||||
validates :expires_at, presence: true, if: :local?
|
||||
validates_with PollValidator, on: :create, if: :local?
|
||||
|
||||
scope :attached, -> { where.not(status_id: nil) }
|
||||
|
||||
before_validation :prepare_options, if: :local?
|
||||
before_validation :prepare_votes_count
|
||||
before_validation :prepare_cached_tallies
|
||||
|
||||
Reference in New Issue
Block a user