Skip to content

Commit

Permalink
respond_to? by default (in ruby) requires 2 args
Browse files Browse the repository at this point in the history
That fixes rspec 3 support and makes everything a little bit more
consistent:
rails/rails@ba5fab4
  • Loading branch information
somebody32 committed Jan 13, 2015
1 parent 93d0cfb commit 8bd1c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/choices/rails.rb
Expand Up @@ -25,7 +25,7 @@ def from_file(name)
end
end

def respond_to?(method)
def respond_to?(method, include_private = false)
super or method.to_s =~ /=$/ or (method.to_s =~ /\?$/ and @choices.key?($`))
end

Expand Down

0 comments on commit 8bd1c43

Please sign in to comment.