Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #8162 from fimmtiu/master

Trivial documentation fix for ActiveModel::Naming comment [ci skip]
  • Loading branch information...
commit 90a1721c3171bce08b20b9ce4765ba9eeea725cd 2 parents 38411b8 + ba291a6
@rafaelfranca rafaelfranca authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/lib/active_model/naming.rb
View
4 activemodel/lib/active_model/naming.rb
@@ -263,10 +263,10 @@ def self.uncountable?(record_or_class)
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.