diff options
author | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2014-04-11 17:57:16 +0530 |
---|---|---|
committer | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2014-04-11 17:57:16 +0530 |
commit | 075a1e21fa59433976dd6860b775a280db10f606 (patch) | |
tree | 4d1ebc5ca7fcbe1187002d0f01be1d151a13bc66 /guides | |
parent | 8c1406cf256c0140748c98cd3c533afc504e0007 (diff) | |
download | rails-075a1e21fa59433976dd6860b775a280db10f606.tar.gz rails-075a1e21fa59433976dd6860b775a280db10f606.tar.bz2 rails-075a1e21fa59433976dd6860b775a280db10f606.zip |
Add more test case for #demodulize, Improve documentation
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_support_core_extensions.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md index f08a85770f..834c94e2ec 100644 --- a/guides/source/active_support_core_extensions.md +++ b/guides/source/active_support_core_extensions.md @@ -1631,6 +1631,9 @@ Given a string with a qualified constant name, `demodulize` returns the very con "Product".demodulize # => "Product" "Backoffice::UsersController".demodulize # => "UsersController" "Admin::Hotel::ReservationUtils".demodulize # => "ReservationUtils" +"::Inflections".demodulize # => "Inflections" +"".demodulize # => "" + ``` Active Record for example uses this method to compute the name of a counter cache column: |