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