Permalink
Browse files

Trivial documentation fix for ActiveModel::Naming comment.

  • Loading branch information...
1 parent 38411b8 commit ba291a67dfaec3afdd82d3c7aa74e8fa70c11726 Dennis Taylor committed Nov 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit ba291a6

Please sign in to comment.