Permalink
Browse files

[ci skip] Include ActiveModel::Model in a class instead of inheriting

  • Loading branch information...
1 parent 6daa466 commit fd3f3c5348008c28d1be4fafabe981c7cae88936 Akshay Vishnoi committed May 29, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 activemodel/lib/active_model/naming.rb
@@ -218,10 +218,11 @@ module Naming
# used to retrieve all kinds of naming-related information
# (See ActiveModel::Name for more information).
#
- # class Person < ActiveModel::Model
+ # class Person
+ # include ActiveModel::Model
# end
#
- # Person.model_name # => Person
+ # Person.model_name.name # => "Person"
# Person.model_name.class # => ActiveModel::Name
# Person.model_name.singular # => "person"
# Person.model_name.plural # => "people"

0 comments on commit fd3f3c5

Please sign in to comment.