Enable validate: true
on CustomFilter#action
(#34434)
This commit is contained in:
parent
6d94c9f4e7
commit
aadff24099
2 changed files with 16 additions and 1 deletions
|
@ -33,7 +33,7 @@ class CustomFilter < ApplicationRecord
|
|||
include Expireable
|
||||
include Redisable
|
||||
|
||||
enum :action, { warn: 0, hide: 1, blur: 2 }, suffix: :action
|
||||
enum :action, { warn: 0, hide: 1, blur: 2 }, suffix: :action, validate: true
|
||||
|
||||
belongs_to :account
|
||||
has_many :keywords, class_name: 'CustomFilterKeyword', inverse_of: :custom_filter, dependent: :destroy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue