Formatting cleanup, follow-up to #378.
This commit is contained in:
parent
c689a1fea2
commit
28433f9707
|
@ -16,7 +16,7 @@ module Ransack
|
|||
def initialize(object, params = {}, options = {})
|
||||
if params.is_a? Hash
|
||||
params = params.dup
|
||||
params.delete_if { |k, v| [*v].all?{|i| i.blank? && i != false } }
|
||||
params.delete_if { |k, v| [*v].all?{ |i| i.blank? && i != false } }
|
||||
else
|
||||
params = {}
|
||||
end
|
||||
|
|
|
@ -56,7 +56,7 @@ module Ransack
|
|||
|
||||
it 'does not modify the parameters' do
|
||||
params = { :name_eq => '' }
|
||||
expect { Person.search(params)}.not_to change { params }
|
||||
expect { Person.search(params) }.not_to change { params }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -186,7 +186,7 @@ module Ransack
|
|||
|
||||
it 'does not modify the parameters' do
|
||||
params = { :name_eq => '' }
|
||||
expect { Search.new(Person, params)}.not_to change { params }
|
||||
expect { Search.new(Person, params) }.not_to change { params }
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue