lib/table_for/base.rb in table-for-3.6.0 vs lib/table_for/base.rb in table-for-3.6.1
- old
+ new
@@ -113,9 +113,12 @@
else
next_sort_mode = sort_modes[next_sort_mode_index]
end
parameters = view.params.merge(:order => order, :sort_mode => next_sort_mode)
+ if parameters.respond_to?(:to_unsafe_h)
+ parameters = parameters.to_unsafe_h
+ end
parameters.delete(:action)
parameters.delete(:controller)
url = options[:sort_url] ? options[:sort_url] : ""
view.link_to view.capture(self, &block), "#{url}?#{parameters.to_query}"
else