Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed ActiveModel documentation [ci skip] #15407

Merged
merged 1 commit into from May 29, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion activemodel/README.rdoc
Expand Up @@ -147,7 +147,7 @@ behavior out of the box:
extend ActiveModel::Naming
end

NamedPerson.model_name # => "NamedPerson"
NamedPerson.model_name.name # => "NamedPerson"
NamedPerson.model_name.human # => "Named person"

{Learn more}[link:classes/ActiveModel/Naming.html]
Expand Down
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/naming.rb
Expand Up @@ -204,7 +204,7 @@ def _singularize(string, replacement='_')
# extend ActiveModel::Naming
# end
#
# BookCover.model_name # => "BookCover"
# BookCover.model_name.name # => "BookCover"
# BookCover.model_name.human # => "Book cover"
#
# BookCover.model_name.i18n_key # => :book_cover
Expand Down