mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
use ActiveModel::Naming module instead of Model [ci skip]
Use the documented module instead of ActiveModel::Model. This makes the example more focused.
This commit is contained in:
parent
31eb88c71d
commit
e8c2f0bebe
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ module ActiveModel
|
||||||
# (See ActiveModel::Name for more information).
|
# (See ActiveModel::Name for more information).
|
||||||
#
|
#
|
||||||
# class Person
|
# class Person
|
||||||
# include ActiveModel::Model
|
# extend ActiveModel::Naming
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# Person.model_name.name # => "Person"
|
# Person.model_name.name # => "Person"
|
||||||
|
|
Loading…
Reference in a new issue