You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change causes array collections to fail when sorting with the error "unable to convert unpermitted parameters to hash".
/lib/smart_listing.rb (line 72) needs a line to permit the sort parameters before converting them to a hash.
if@options[:array]if@sort && !@sort.empty?# when array we sort only by first attribute@sort.permit!# Add this linei=sort_keys.index{|x| x[0] == @sort.to_h.first[0]}
The text was updated successfully, but these errors were encountered:
The following pull changes the behaviour of to_h for unpermitted params -
rails/rails#28734
This change causes array collections to fail when sorting with the error "unable to convert unpermitted parameters to hash".
/lib/smart_listing.rb (line 72) needs a line to permit the sort parameters before converting them to a hash.
The text was updated successfully, but these errors were encountered: