class Ransack::Helpers::FormHelper::SortLink
def initialize(search, attribute, args, params)
def initialize(search, attribute, args, params) @search = search @params = parameters_hash(params) @field = attribute.to_s @sort_fields = extract_sort_fields_and_mutate_args!(args).compact @current_dir = existing_sort_direction @label_text = extract_label_and_mutate_args!(args) @options = extract_options_and_mutate_args!(args) @hide_indicator = @options.delete(:hide_indicator) || Ransack.options[:hide_sort_order_indicators] @default_order = @options.delete :default_order end