module Sort::FormattingHelper

Public Instance Methods

ascending_str(format) click to toggle source
# File lib/action_set/helpers/sort/formatting_helper.rb, line 5
def ascending_str(format)
  return 'asc' if format.to_s == 'short'

  'ascending'
end
descending_str(format) click to toggle source
# File lib/action_set/helpers/sort/formatting_helper.rb, line 11
def descending_str(format)
  return 'desc' if format.to_s == 'short'

  'descending'
end