lib/airbrake/rails/controller_methods.rb in airbrake-3.1.11 vs lib/airbrake/rails/controller_methods.rb in airbrake-3.1.12

- old
+ new

@@ -43,14 +43,14 @@ return hash if ! hash.is_a?(Hash) if respond_to?(:filter_parameters) # Rails 2 filter_parameters(hash) - elsif defined?(ActionDispatch::Http::ParameterFilter) # Rails 3 - ActionDispatch::Http::ParameterFilter.new(::Rails.application.config.filter_parameters).filter(hash) + # elsif defined?(ActionDispatch::Http::ParameterFilter) # Rails 3 + # ActionDispatch::Http::ParameterFilter.new(::Rails.application.config.filter_parameters).filter(hash) else hash - end rescue hash + end end def airbrake_session_data if session.respond_to?(:to_hash)