Skip to content

Commit

Permalink
align the result of expressions vertically [ci skip].
Browse files Browse the repository at this point in the history
  • Loading branch information
senny committed Apr 12, 2013
1 parent 1c2f80a commit 068289f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions activemodel/README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ to integrate with Action Pack out of the box: <tt>ActiveModel::Model</tt>.
end

person = Person.new(name: 'bob', age: '18')
person.name # => 'bob'
person.age # => '18'
person.name # => 'bob'
person.age # => '18'
person.valid? # => true

It includes model name introspections, conversions, translations and
Expand Down Expand Up @@ -82,12 +82,12 @@ behavior out of the box:
end

person = Person.new
person.name # => nil
person.changed? # => false
person.name # => nil
person.changed? # => false
person.name = 'bob'
person.changed? # => true
person.changed # => ['name']
person.changes # => { 'name' => [nil, 'bob'] }
person.changed? # => true
person.changed # => ['name']
person.changes # => { 'name' => [nil, 'bob'] }
person.name = 'robert'
person.save
person.previous_changes # => {'name' => ['bob, 'robert']}
Expand Down

0 comments on commit 068289f

Please sign in to comment.