diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-11-17 03:10:27 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-17 03:10:27 -0600 |
commit | 81c2b3e2400c67f638efdd15c1c4a060e65e3d23 (patch) | |
tree | a12ccbb1e17f649ffa48e39b5c011fe6b3ea63ff /app/controllers | |
parent | 5ab70ad962481a2169593b81d15f86d1ea99653d (diff) |
When domain policies are created or updated, set the `processing` flag from the model instead of from the controller.
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/admin/domain_blocks_controller.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/app/controllers/admin/domain_blocks_controller.rb b/app/controllers/admin/domain_blocks_controller.rb index 63c2f3eee..859bdd6d3 100644 --- a/app/controllers/admin/domain_blocks_controller.rb +++ b/app/controllers/admin/domain_blocks_controller.rb @@ -46,7 +46,6 @@ module Admin def update return destroy unless resource_params[:undo].to_i.zero? resource_params[:reason].strip! if resource_params[:reason].present? - resource_params[:processing] = true authorize @domain_block, :update? @domain_block.update(resource_params.except(:domain, :undo)) if @domain_block.save |