about summary refs log tree commit diff
path: root/app/models/custom_filter.rb
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-19 23:00:36 -0500
committerGitHub <noreply@github.com>2023-02-20 05:00:36 +0100
commit63e63538861bd850a38a282e37de046639afa993 (patch)
tree6163b8725c595af0cc40460b0ff2a5eee5988ffc /app/models/custom_filter.rb
parent44a7d87cb1f5df953b6c14c16c59e2e4ead1bcb9 (diff)
Autofix Rubocop Rails/EnumHash (#23737)
Diffstat (limited to 'app/models/custom_filter.rb')
-rw-r--r--app/models/custom_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/custom_filter.rb b/app/models/custom_filter.rb
index b70e53bd5..781bf4db8 100644
--- a/app/models/custom_filter.rb
+++ b/app/models/custom_filter.rb
@@ -30,7 +30,7 @@ class CustomFilter < ApplicationRecord
   include Expireable
   include Redisable
 
-  enum action: [:warn, :hide], _suffix: :action
+  enum action: { warn: 0, hide: 1 }, _suffix: :action
 
   belongs_to :account
   has_many :keywords, class_name: 'CustomFilterKeyword', inverse_of: :custom_filter, dependent: :destroy