Remove a stray hash mutation from #sort_link

The idea is to centralize all mutations and brittle, order-dependent
operations in the `initialize` method.
This commit is contained in:
Jon Atack 2014-12-08 01:07:56 +01:00
parent 16edfb479b
commit 909bebf46a
1 changed files with 5 additions and 2 deletions

View File

@ -84,8 +84,11 @@ module Ransack
end
def options_for_url
@options[@search_object.context.search_key] = search_and_sort_params
params.merge(@options)
params.merge(
@options.merge(
@search_object.context.search_key => search_and_sort_params
)
)
end
def search_and_sort_params