module Sort::PathForHelper
Public Instance Methods
sort_path_for(attribute)
click to toggle source
# File lib/action_set/helpers/sort/path_for_helper.rb, line 11 def sort_path_for(attribute) url_for sort_params_for(attribute) end
Private Instance Methods
sort_params_for(attribute)
click to toggle source
# File lib/action_set/helpers/sort/path_for_helper.rb, line 17 def sort_params_for(attribute) current_params .merge(only_path: true, sort: { attribute => next_sort_direction_for(attribute) }) end