diff options
author | Roman Pramberger <roman@pramberger.ch> | 2015-10-06 10:46:14 +0200 |
---|---|---|
committer | Roman Pramberger <roman@pramberger.ch> | 2015-10-06 10:46:14 +0200 |
commit | e8c2f0bebe1318e2a977f51e9e70cf626af35c5e (patch) | |
tree | 42f43d27f45a44cb4a156e2556080647d8cb7894 | |
parent | 31eb88c71d044833064c9d6cd3f79711f938ed84 (diff) | |
download | rails-e8c2f0bebe1318e2a977f51e9e70cf626af35c5e.tar.gz rails-e8c2f0bebe1318e2a977f51e9e70cf626af35c5e.tar.bz2 rails-e8c2f0bebe1318e2a977f51e9e70cf626af35c5e.zip |
use ActiveModel::Naming module instead of Model [ci skip]
Use the documented module instead of ActiveModel::Model.
This makes the example more focused.
-rw-r--r-- | activemodel/lib/active_model/naming.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/naming.rb b/activemodel/lib/active_model/naming.rb index de5fb27467..d86ef6224e 100644 --- a/activemodel/lib/active_model/naming.rb +++ b/activemodel/lib/active_model/naming.rb @@ -226,7 +226,7 @@ module ActiveModel # (See ActiveModel::Name for more information). # # class Person - # include ActiveModel::Model + # extend ActiveModel::Naming # end # # Person.model_name.name # => "Person" |