diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-04-12 17:22:39 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-04-12 17:22:39 +0200 |
commit | 068289f23933225acc2cff27e4ebe1a0afd8cb94 (patch) | |
tree | 499cf0e7d376915b423a294ca4e376b5f8b4c21f /activemodel | |
parent | 1c2f80a66f55e9ba84d7f3848aca47478f212949 (diff) | |
download | rails-068289f23933225acc2cff27e4ebe1a0afd8cb94.tar.gz rails-068289f23933225acc2cff27e4ebe1a0afd8cb94.tar.bz2 rails-068289f23933225acc2cff27e4ebe1a0afd8cb94.zip |
align the result of expressions vertically [ci skip].
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/README.rdoc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/activemodel/README.rdoc b/activemodel/README.rdoc index a66225319d..a399fe9051 100644 --- a/activemodel/README.rdoc +++ b/activemodel/README.rdoc @@ -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 @@ -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']} |