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:
parent
16edfb479b
commit
909bebf46a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue