From 26e050b9f21ad782423c765dddf1cd4a8f0e03f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Wed, 23 Oct 2019 18:03:53 +0200 Subject: [PATCH] Remove redundant scopes These scopes were already defined by the `enum :task` method. --- app/models/poll/shift.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/poll/shift.rb b/app/models/poll/shift.rb index 828fba66e..5fc8ca9b9 100644 --- a/app/models/poll/shift.rb +++ b/app/models/poll/shift.rb @@ -10,8 +10,6 @@ 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 :current, -> { where(date: Date.current) } before_create :persist_data