Skip to content

Commit

Permalink
Support Rails 6 in #sort_link helper
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrew committed Feb 8, 2019
1 parent 50ef94f commit 0425428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ransack/helpers/form_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def html_options(args)
private

def parameters_hash(params)
if ::ActiveRecord::VERSION::MAJOR == 5 && params.respond_to?(:to_unsafe_h)
if ::ActiveRecord::VERSION::MAJOR >= 5 && params.respond_to?(:to_unsafe_h)
params.to_unsafe_h
else
params
Expand Down

0 comments on commit 0425428

Please sign in to comment.