diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-19 23:00:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 05:00:36 +0100 |
commit | 63e63538861bd850a38a282e37de046639afa993 (patch) | |
tree | 6163b8725c595af0cc40460b0ff2a5eee5988ffc /app/models/custom_filter.rb | |
parent | 44a7d87cb1f5df953b6c14c16c59e2e4ead1bcb9 (diff) |
Autofix Rubocop Rails/EnumHash (#23737)
Diffstat (limited to 'app/models/custom_filter.rb')
-rw-r--r-- | app/models/custom_filter.rb | 2 |
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 |