Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

1 0 stable #62

Open
wants to merge 1 commit into
base: 1-0-stable
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/meta_search/helpers/url_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def sort_link(builder, attribute, *args)
end
options.delete(:default_order)

indicator_spacer = options[:indicator_spacer] || ' '
options.delete(:indicator_spacer)

html_options = args.first.is_a?(Hash) ? args.shift : {}
css = ['sort_link', current_order].compact.join(' ')
html_options[:class] = [css, html_options[:class]].compact.join(' ')
Expand All @@ -45,7 +48,7 @@ def sort_link(builder, attribute, *args)
'meta_sort' => [attr_name, new_order].join('.')
)
)
link_to [ERB::Util.h(name), order_indicator_for(current_order)].compact.join(' ').html_safe,
link_to [ERB::Util.h(name), order_indicator_for(current_order)].compact.join(indicator_spacer)).html_safe,
url_for(options),
html_options
end
Expand Down