diff --git a/activemodel/lib/active_model/model.rb b/activemodel/lib/active_model/model.rb index 63716eebb1bb91766257a5bf9cd09a9b0693da5f..640024eaa14c3ef688c5b3dbdbd58d0fb1850f1d 100644 --- a/activemodel/lib/active_model/model.rb +++ b/activemodel/lib/active_model/model.rb @@ -16,8 +16,8 @@ module ActiveModel # end # # person = Person.new(name: 'bob', age: '18') - # person.name # => 'bob' - # person.age # => 18 + # person.name # => "bob" + # person.age # => "18" # # Note that, by default, ActiveModel::Model implements persisted? # to return +false+, which is the most common case. You may want to override @@ -74,7 +74,7 @@ def self.included(base) #:nodoc: # # person = Person.new(name: 'bob', age: '18') # person.name # => "bob" - # person.age # => 18 + # person.age # => "18" def initialize(params={}) params.each do |attr, value| self.public_send("#{attr}=", value)