1
0
Fork 0
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:
Roman Pramberger 2015-10-06 10:46:14 +02:00
parent 31eb88c71d
commit e8c2f0bebe

View file

@ -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"