Use double quotes in models
This commit is contained in:
@@ -10,8 +10,8 @@ class Poll
|
||||
|
||||
enum task: { vote_collection: 0, recount_scrutiny: 1 }
|
||||
|
||||
scope :vote_collection, -> { where(task: 'vote_collection') }
|
||||
scope :recount_scrutiny, -> { where(task: 'recount_scrutiny') }
|
||||
scope :vote_collection, -> { where(task: "vote_collection") }
|
||||
scope :recount_scrutiny, -> { where(task: "recount_scrutiny") }
|
||||
scope :current, -> { where(date: Date.current) }
|
||||
|
||||
before_create :persist_data
|
||||
|
||||
Reference in New Issue
Block a user