Style cleanup
This commit is contained in:
parent
b36951ac58
commit
91c6ae0e8b
|
@ -72,7 +72,7 @@ module Ransack
|
|||
Nodes::Sort.new(@context).build(opts)
|
||||
end
|
||||
|
||||
def respond_to?(method_id, include_private=false)
|
||||
def respond_to?(method_id, include_private = false)
|
||||
super or begin
|
||||
method_name = method_id.to_s
|
||||
writer = method_name.sub!(/\=$/, '')
|
||||
|
|
|
@ -242,7 +242,7 @@ module Ransack
|
|||
|
||||
describe '#respond_to' do
|
||||
it 'is aware of second argument' do
|
||||
Search.new(Person).respond_to?(:name_eq, true).should be
|
||||
Search.new(Person).respond_to?(:name_eq, true).should be_true
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue