Formatting cleanup, follow-up to #378.

This commit is contained in:
Jon Atack 2014-08-28 13:13:19 +02:00
parent c689a1fea2
commit 28433f9707
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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