We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 971b303 commit fe867d9Copy full SHA for fe867d9
lib/jsonapi/rails/railtie.rb
@@ -39,11 +39,7 @@ def register_mime_type
39
end
40
41
def register_parameter_parser
42
- if ::Rails::VERSION::MAJOR >= 5
43
- ActionDispatch::Request.parameter_parsers[:jsonapi] = PARSER
44
- else
45
- ActionDispatch::ParamsParser::DEFAULT_PARSERS[Mime[:jsonapi]] = PARSER
46
- end
+ ActionDispatch::Request.parameter_parsers[:jsonapi] = PARSER
47
48
49
# rubocop:disable Metrics/MethodLength
0 commit comments