Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't rely on string CoreExtensions in StringInquirer since it is som…

…etimes expected to work before the core extension are loaded

Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
  • Loading branch information...
commit ef53d915164da7f757d03c4a70fe38e374c08b14 1 parent a9e8168
Tarmo Tänav tarmo authored dhh committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/string_inquirer.rb
2  activesupport/lib/active_support/string_inquirer.rb
View
@@ -11,7 +11,7 @@ module ActiveSupport
#
class StringInquirer < String
def method_missing(method_name, *arguments)
- if method_name.to_s.ends_with?("?")
+ if method_name.to_s[-1,1] == "?"
self == method_name.to_s[0..-2]
else
super
Please sign in to comment.
Something went wrong with that request. Please try again.