diff options
author | Thomas Hart II <myrridin@gmail.com> | 2015-08-05 18:49:59 -0400 |
---|---|---|
committer | Thomas Hart II <myrridin@gmail.com> | 2015-08-05 18:49:59 -0400 |
commit | 6d077205b5269fc03c5318cecf378dd2592f2f4a (patch) | |
tree | 8160f2827a58e9e5298a9ba4d8b52ebf2ad3096f /activesupport/lib/active_support/core_ext | |
parent | 90e893d447e2ae2f20a54a7b8aff4c46a7b108f6 (diff) | |
download | rails-6d077205b5269fc03c5318cecf378dd2592f2f4a.tar.gz rails-6d077205b5269fc03c5318cecf378dd2592f2f4a.tar.bz2 rails-6d077205b5269fc03c5318cecf378dd2592f2f4a.zip |
[ci skip] Switch around a common idiom for readability
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/inflections.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/inflections.rb b/activesupport/lib/active_support/core_ext/string/inflections.rb index 97f9720b2b..689fc8427a 100644 --- a/activesupport/lib/active_support/core_ext/string/inflections.rb +++ b/activesupport/lib/active_support/core_ext/string/inflections.rb @@ -172,7 +172,7 @@ class String # uses the +pluralize+ method on the last word in the string. # # 'RawScaledScorer'.tableize # => "raw_scaled_scorers" - # 'egg_and_ham'.tableize # => "egg_and_hams" + # 'ham_and_egg'.tableize # => "ham_and_eggs" # 'fancyCategory'.tableize # => "fancy_categories" def tableize ActiveSupport::Inflector.tableize(self) @@ -182,7 +182,7 @@ class String # Note that this returns a string and not a class. (To convert to an actual class # follow +classify+ with +constantize+.) # - # 'egg_and_hams'.classify # => "EggAndHam" + # 'ham_and_eggs'.classify # => "HamAndEgg" # 'posts'.classify # => "Post" def classify ActiveSupport::Inflector.classify(self) |