Skip to content
Browse files

Make sure respond_to_missing? returns a boolean

  • Loading branch information...
1 parent a1a0bbf commit 479760180ce0ab8c32da95e3f6fdbee490e9cf63 @shuber committed Jan 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/queryable_array.rb
View
2 lib/queryable_array.rb
@@ -155,6 +155,6 @@ def method_missing(method, *arguments)
# Determines if +method+ is a +finder?+ and delegates the call to its
# superclass +Array+ if it's not.
def respond_to_missing?(method, include_super)
- finder?(method) || super
+ !!finder?(method) || super
end
end

0 comments on commit 4797601

Please sign in to comment.
Something went wrong with that request. Please try again.