ahmed
ahmed
solve #2168 as active_record_instance#errors metho is not returning a hash object anymore. as a part of rails 6.1 upgrade the JSON error formatter should consider this change and check if...
a change happen in class type in rails 6.1 User.first.errors.messages was returned a Hash instance but now it is giving back a `ActiveModel::DeprecationHandlingMessageHash` and according to the check [here](https://github.com/ruby-grape/grape/blob/master/lib/grape/error_formatter/json.rb#L25) grape...
https://github.com/ryancheung/exception_logger/blob/master/lib/exception_logger.rb#L62 ` def filter_sub_parameters(params, rails_filter_parameters) params.each do |key, value| if(value.class != Hash and value.class != ActiveSupport::HashWithIndifferentAccess) params[key] = '[FILTERED]' if rails_filter_parameters.include?(key.to_sym) else params[key] = filter_sub_parameters(value) end end params end `...