Use double quotes in models

This commit is contained in:
Julian Herrero
2019-03-13 22:57:47 +01:00
parent 3c313c9c52
commit 3ba961a2d7
57 changed files with 241 additions and 241 deletions

View File

@@ -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