Skip to content

Commit fe867d9

Browse files
authored
Remove Rails version check (#141)
As per gemspec, this gem supports Rails 5.x This commit removes a check for an older version of Rails no longer supported
1 parent 971b303 commit fe867d9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/jsonapi/rails/railtie.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ def register_mime_type
3939
end
4040

4141
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
42+
ActionDispatch::Request.parameter_parsers[:jsonapi] = PARSER
4743
end
4844

4945
# rubocop:disable Metrics/MethodLength

0 commit comments

Comments
 (0)