Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Style cleanup

  • Loading branch information...
commit 91c6ae0e8bb7d285278ce2cffc3fe814f3f7b120 1 parent b36951a
@ernie ernie authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/ransack/search.rb
  2. +1 −1  spec/ransack/search_spec.rb
View
2  lib/ransack/search.rb
@@ -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!(/\=$/, '')
View
2  spec/ransack/search_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.