diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-09 11:27:25 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-09 11:27:25 -0800 |
commit | 90a1721c3171bce08b20b9ce4765ba9eeea725cd (patch) | |
tree | 9eb629aade9a62cc44240f0c0d1b218496270024 | |
parent | 38411b89fc6b1ddf29a39fed174b8b7dd0951764 (diff) | |
parent | ba291a67dfaec3afdd82d3c7aa74e8fa70c11726 (diff) | |
download | rails-90a1721c3171bce08b20b9ce4765ba9eeea725cd.tar.gz rails-90a1721c3171bce08b20b9ce4765ba9eeea725cd.tar.bz2 rails-90a1721c3171bce08b20b9ce4765ba9eeea725cd.zip |
Merge pull request #8162 from fimmtiu/master
Trivial documentation fix for ActiveModel::Naming comment [ci skip]
-rw-r--r-- | activemodel/lib/active_model/naming.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/naming.rb b/activemodel/lib/active_model/naming.rb index eb8265d8c6..264880eecd 100644 --- a/activemodel/lib/active_model/naming.rb +++ b/activemodel/lib/active_model/naming.rb @@ -263,10 +263,10 @@ module ActiveModel # namespaced models regarding whether it's inside isolated engine. # # # For isolated engine: - # ActiveModel::Naming.route_key(Blog::Post) #=> post + # ActiveModel::Naming.singular_route_key(Blog::Post) #=> post # # # For shared engine: - # ActiveModel::Naming.route_key(Blog::Post) #=> blog_post + # ActiveModel::Naming.singular_route_key(Blog::Post) #=> blog_post def self.singular_route_key(record_or_class) model_name_from_record_or_class(record_or_class).singular_route_key end |