diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-10 14:19:04 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-10 14:19:04 -0600 |
commit | 13b4d7953adfa8455f800a56124c7d6ecafa41ca (patch) | |
tree | 76fa5d86a2e646c09b08637625cc31aaa2f694b0 /app/controllers | |
parent | e13202c114eeb7584e776a073a41d9e57ae31e02 (diff) |
add ability to toggle individual filters without deleting them
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/api/v1/filters_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/filters_controller.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/api/v1/filters_controller.rb b/app/controllers/api/v1/filters_controller.rb index de2c90dba..514f7c8fa 100644 --- a/app/controllers/api/v1/filters_controller.rb +++ b/app/controllers/api/v1/filters_controller.rb @@ -43,6 +43,6 @@ class Api::V1::FiltersController < Api::BaseController end def resource_params - params.permit(:phrase, :expires_in) + params.permit(:phrase, :expires_in, :is_enabled) end end diff --git a/app/controllers/filters_controller.rb b/app/controllers/filters_controller.rb index 9fa653b11..f5cc00d2f 100644 --- a/app/controllers/filters_controller.rb +++ b/app/controllers/filters_controller.rb @@ -58,7 +58,7 @@ class FiltersController < ApplicationController end def resource_params - params.require(:custom_filter).permit(:phrase, :expires_in) + params.require(:custom_filter).permit(:phrase, :expires_in, :is_enabled) end def set_body_classes |