From 7ddc53bb5b177e7a75ef003524ed0869c67e4bc6 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sat, 12 Sep 2020 12:25:43 +0100 Subject: [PATCH] Remove temporary debugging helpers added during the Rails 4 upgrade. --- app/controllers/api/base_controller.rb | 6 ------ app/controllers/application_controller.rb | 6 ------ 2 files changed, 12 deletions(-) diff --git a/app/controllers/api/base_controller.rb b/app/controllers/api/base_controller.rb index e9d82d19ad..16b663e5aa 100644 --- a/app/controllers/api/base_controller.rb +++ b/app/controllers/api/base_controller.rb @@ -33,12 +33,6 @@ module Api use_renderers :json check_authorization - # Temporary measure to help debugging strong_parameters - rescue_from ActiveModel::ForbiddenAttributesError, with: :print_params - def print_params - raise ActiveModel::ForbiddenAttributesError, params.to_s - end - def set_jsonp_format return unless params[:callback] && request.get? diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index e9cb17480b..f3ddff301c 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -10,12 +10,6 @@ class ApplicationController < ActionController::Base include EnterprisesHelper include Spree::AuthenticationHelpers - # Temporary measure to help debugging strong_parameters - rescue_from ActiveModel::ForbiddenAttributesError, with: :print_params - def print_params - raise ActiveModel::ForbiddenAttributesError, params.to_s - end - def redirect_to(options = {}, response_status = {}) ::Rails.logger.error("Redirected by #{begin caller(1).first