Permalink
Browse files

Fix docs related to param_key in ActiveModel::Naming

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 8a3461b commit 69a4c67a3fdbc5e57e2e27519eec5f5669062e64 @carlosantoniodasilva carlosantoniodasilva committed with josevalim Sep 4, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/lib/active_model/naming.rb
@@ -111,10 +111,10 @@ def self.route_key(record_or_class)
# namespaced models regarding whether it's inside isolated engine.
#
# For isolated engine:
- # ActiveModel::Naming.route_key(Blog::Post) #=> post
+ # ActiveModel::Naming.param_key(Blog::Post) #=> post
#
# For shared engine:
- # ActiveModel::Naming.route_key(Blog::Post) #=> blog_post
+ # ActiveModel::Naming.param_key(Blog::Post) #=> blog_post
def self.param_key(record_or_class)
model_name_from_record_or_class(record_or_class).param_key
end

0 comments on commit 69a4c67

Please sign in to comment.