Skip to content

Instantly share code, notes, and snippets.

@tenderlove
Created March 16, 2011 03:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tenderlove/871989 to your computer and use it in GitHub Desktop.
Save tenderlove/871989 to your computer and use it in GitHub Desktop.
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
@xenda
Copy link

xenda commented Mar 16, 2011

+100

@illuminerdi
Copy link

+8901

@svesely
Copy link

svesely commented Mar 16, 2011

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