diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-01-25 11:09:59 -0800 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-01-25 11:09:59 -0800 |
commit | b0239211411ce45f9cbaf5dfaf2ba28cc93c5a6d (patch) | |
tree | 8622f2c22b4f9d69c2844f7c7b27011a0503b3d1 /activesupport/lib/active_support/inflector | |
parent | a267090946b126df5e0da484e5804f7a09e15f8f (diff) | |
parent | 2d73f70ac570a398b1b0a4e201af2ce4aeb83a6d (diff) | |
download | rails-b0239211411ce45f9cbaf5dfaf2ba28cc93c5a6d.tar.gz rails-b0239211411ce45f9cbaf5dfaf2ba28cc93c5a6d.tar.bz2 rails-b0239211411ce45f9cbaf5dfaf2ba28cc93c5a6d.zip |
Merge pull request #4673 from carlosantoniodasilva/validation-guides-update-3-2
Validation guides update 3 2
Diffstat (limited to 'activesupport/lib/active_support/inflector')
-rw-r--r-- | activesupport/lib/active_support/inflector/methods.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/activesupport/lib/active_support/inflector/methods.rb b/activesupport/lib/active_support/inflector/methods.rb index 144cdd3c8f..c68a2baee7 100644 --- a/activesupport/lib/active_support/inflector/methods.rb +++ b/activesupport/lib/active_support/inflector/methods.rb @@ -42,10 +42,10 @@ module ActiveSupport # +camelize+ will also convert '/' to '::' which is useful for converting paths to namespaces. # # Examples: - # "active_record".camelize # => "ActiveRecord" - # "active_record".camelize(:lower) # => "activeRecord" - # "active_record/errors".camelize # => "ActiveRecord::Errors" - # "active_record/errors".camelize(:lower) # => "activeRecord::Errors" + # "active_model".camelize # => "ActiveModel" + # "active_model".camelize(:lower) # => "activeModel" + # "active_model/errors".camelize # => "ActiveModel::Errors" + # "active_model/errors".camelize(:lower) # => "activeModel::Errors" # # As a rule of thumb you can think of +camelize+ as the inverse of +underscore+, # though there are cases where that does not hold: @@ -66,8 +66,8 @@ module ActiveSupport # Changes '::' to '/' to convert namespaces to paths. # # Examples: - # "ActiveRecord".underscore # => "active_record" - # "ActiveRecord::Errors".underscore # => active_record/errors + # "ActiveModel".underscore # => "active_model" + # "ActiveModel::Errors".underscore # => "active_model/errors" # # As a rule of thumb you can think of +underscore+ as the inverse of +camelize+, # though there are cases where that does not hold: |