diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2010-09-03 22:09:46 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-09-05 18:14:37 +0200 |
commit | 69a4c67a3fdbc5e57e2e27519eec5f5669062e64 (patch) | |
tree | 321762ef02cd63f9665e00208f33a7f6bd06a154 | |
parent | 8a3461b8c1cb6371c809618420de9e69a71d183f (diff) | |
download | rails-69a4c67a3fdbc5e57e2e27519eec5f5669062e64.tar.gz rails-69a4c67a3fdbc5e57e2e27519eec5f5669062e64.tar.bz2 rails-69a4c67a3fdbc5e57e2e27519eec5f5669062e64.zip |
Fix docs related to param_key in ActiveModel::Naming
Signed-off-by: José Valim <jose.valim@gmail.com>
-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 dadb1882e4..61e1632088 100644 --- a/activemodel/lib/active_model/naming.rb +++ b/activemodel/lib/active_model/naming.rb @@ -111,10 +111,10 @@ module ActiveModel # 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 |