Don't pass @options ivar needlessly

This commit is contained in:
Jon Atack 2014-12-07 20:49:53 +01:00
parent 9d823e4630
commit caafc2b532
1 changed files with 5 additions and 5 deletions

View File

@ -77,15 +77,15 @@ module Ransack
def url(routing_proxy)
if routing_proxy && respond_to?(routing_proxy)
send(routing_proxy).url_for(options_for_url(@options))
send(routing_proxy).url_for(options_for_url)
else
url_for(options_for_url(@options))
url_for(options_for_url)
end
end
def options_for_url(options)
options[@search_object.context.search_key] = search_and_sort_params
params.merge(options)
def options_for_url
@options[@search_object.context.search_key] = search_and_sort_params
params.merge(@options)
end
def search_and_sort_params