Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[ci skip] add created_at and updated_at to example

  • Loading branch information...
commit d7d7211c5344d5af9968abbb70e84fec64858781 1 parent 9b6b32a
@schneems schneems authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/attribute_assignment.rb
View
4 activerecord/lib/active_record/attribute_assignment.rb
@@ -13,9 +13,9 @@ module AttributeAssignment
# exception is raised.
#
# cat = Cat.new(name: "Gorby", status: "yawning")
- # cat.attributes # => { "name" => "Gorby", "status" => "yawning" }
+ # cat.attributes # => { "name" => "Gorby", "status" => "yawning", "created_at" => nil, "updated_at" => nil}
# cat.assign_attributes(status: "sleeping")
- # cat.attributes # => { "name" => "Gorby", "status" => "sleeping" }
+ # cat.attributes # => { "name" => "Gorby", "status" => "sleeping", "created_at" => nil, "updated_at" => nil }
#
# New attributes will be persisted in the database when the object is saved.
#
Please sign in to comment.
Something went wrong with that request. Please try again.