From dd44bce2656839250d186fee6528ba1aea8ad6c5 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sun, 23 Aug 2009 15:06:36 +0200 Subject: [PATCH] fixes typo in previous (pushed) commit --- railties/guides/source/active_support_overview.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/guides/source/active_support_overview.textile b/railties/guides/source/active_support_overview.textile index 392e9388df..ae25438825 100644 --- a/railties/guides/source/active_support_overview.textile +++ b/railties/guides/source/active_support_overview.textile @@ -725,7 +725,7 @@ If strings do not respond to those methods Active Support emulates them, and als "foo".ends_with?("o") # => true -in case you feel more confortable spelling them that way. +in case you feel more comfortable spelling them that way. WARNING. Active Support invokes +to_s+ on the argument, but Ruby does not. Since Active Support defines these methods only if strings do not respond to them, this corner of their behaviour depends on the interpreter that runs a given Rails application. You change the interpreter, and +start_with?(1)+ may change its return value. In consequence, it's more portable not to rely on that and pass always strings.