Created
March 16, 2011 03:56
-
-
Save tenderlove/871989 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/activesupport/lib/active_support/core_ext/string/inflections.rb b/activesupport/lib/active_support/core_ext/string/inflections.rb | |
index 2f0676f..7dae5df 100644 | |
--- a/activesupport/lib/active_support/core_ext/string/inflections.rb | |
+++ b/activesupport/lib/active_support/core_ext/string/inflections.rb | |
@@ -59,6 +59,7 @@ class String | |
end | |
end | |
alias_method :camelcase, :camelize | |
+ alias_method :caramelize, :camelize | |
# Capitalizes all the words and replaces some characters in the string to create | |
# a nicer looking title. +titleize+ is meant for creating pretty output. It is not |
+8901
This really sets the bar high for sugary syntax.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
+100