From e8c2f0bebe1318e2a977f51e9e70cf626af35c5e Mon Sep 17 00:00:00 2001 From: Roman Pramberger Date: Tue, 6 Oct 2015 10:46:14 +0200 Subject: use ActiveModel::Naming module instead of Model [ci skip] Use the documented module instead of ActiveModel::Model. This makes the example more focused. --- activemodel/lib/active_model/naming.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel') 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" -- cgit v1.2.3