Exception: ZuoraConnect::JsonParseErrors::DynamicRailsError
- Inherits:
-
StandardError
- Object
- StandardError
- ZuoraConnect::JsonParseErrors::DynamicRailsError
- Defined in:
- lib/middleware/json_parse_errors.rb
Overview
Note(hartley): remove once the minimum supported version of Rails is 5.2
Class Method Summary collapse
Class Method Details
.===(exception) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/middleware/json_parse_errors.rb', line 24 def self.===(exception) if Rails.version >= "5.2" exception.is_a?(ActionDispatch::Http::Parameters::ParseError) else exception.is_a?(ActionDispatch::ParamsParser::ParseError) end end |