Skip to content

Commit

Permalink
Merge pull request #8162 from fimmtiu/master
Browse files Browse the repository at this point in the history
Trivial documentation fix for ActiveModel::Naming comment [ci skip]
  • Loading branch information
rafaelfranca committed Nov 9, 2012
2 parents 38411b8 + ba291a6 commit 90a1721
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activemodel/lib/active_model/naming.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90a1721

Please sign in to comment.