diff options
-rw-r--r-- | app/controllers/admin/domain_blocks_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/admin/domain_blocks_controller.rb b/app/controllers/admin/domain_blocks_controller.rb index 593b91455..63c2f3eee 100644 --- a/app/controllers/admin/domain_blocks_controller.rb +++ b/app/controllers/admin/domain_blocks_controller.rb @@ -14,7 +14,7 @@ module Admin resource_params[:domain].strip! if resource_params[:domain].present? resource_params[:reason].strip! if resource_params[:reason].present? - resource_pararms[:processing] = true + resource_params[:processing] = true @domain_block = DomainBlock.new(resource_params) existing_domain_block = resource_params[:domain].present? ? DomainBlock.find_by(domain: resource_params[:domain].strip) : nil @@ -46,7 +46,7 @@ module Admin def update return destroy unless resource_params[:undo].to_i.zero? resource_params[:reason].strip! if resource_params[:reason].present? - resource_pararms[:processing] = true + resource_params[:processing] = true authorize @domain_block, :update? @domain_block.update(resource_params.except(:domain, :undo)) if @domain_block.save |