Skip to content

Commit

Permalink
Style cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ernie committed Oct 11, 2012
1 parent b36951a commit 91c6ae0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ransack/search.rb
Expand Up @@ -72,7 +72,7 @@ def new_sort(opts = {})
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!(/\=$/, '')
Expand Down
2 changes: 1 addition & 1 deletion spec/ransack/search_spec.rb
Expand Up @@ -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

Expand Down

0 comments on commit 91c6ae0

Please sign in to comment.