Sha256: 882b58cb744a326a2e6e32d66a77d196f12765f31380c199d0fe9739ddf9c5fc
Contents?: true
Size: 401 Bytes
Versions: 2
Compression:
Stored size: 401 Bytes
Contents
# frozen_string_literal: true module Sort module PathForHelper def sort_path_for(attribute) url_for sort_params_for(attribute) end private def sort_params_for(attribute) current_params.merge(only_path: true, sort: { attribute => next_sort_direction_for(attribute) }) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
actionset-0.4.2 | lib/action_set/helpers/sort/path_for_helper.rb |
actionset-0.4.1 | lib/action_set/helpers/sort/path_for_helper.rb |