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
|
end
|
||||||
|
|
||||||
def options_for_url
|
def options_for_url
|
||||||
@options[@search_object.context.search_key] = search_and_sort_params
|
params.merge(
|
||||||
params.merge(@options)
|
@options.merge(
|
||||||
|
@search_object.context.search_key => search_and_sort_params
|
||||||
|
)
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
def search_and_sort_params
|
def search_and_sort_params
|
||||||
|
|
Loading…
Reference in New Issue