Skip to content
This repository
Browse code

Merge pull request #10192 from senny/align_expression_outputs

align the result of expressions vertically [ci skip].
  • Loading branch information...
commit 70db38572a70f1b1ae53086873c4ce25cf4d34c7 2 parents b36ef40 + 068289f
Carlos Antonio da Silva carlosantoniodasilva authored

Showing 1 changed file with 7 additions and 7 deletions. Show diff stats Hide diff stats

  1. +7 7 activemodel/README.rdoc
14 activemodel/README.rdoc
Source Rendered
@@ -24,8 +24,8 @@ to integrate with Action Pack out of the box: <tt>ActiveModel::Model</tt>.
24 24 end
25 25
26 26 person = Person.new(name: 'bob', age: '18')
27   - person.name # => 'bob'
28   - person.age # => '18'
  27 + person.name # => 'bob'
  28 + person.age # => '18'
29 29 person.valid? # => true
30 30
31 31 It includes model name introspections, conversions, translations and
@@ -82,12 +82,12 @@ behavior out of the box:
82 82 end
83 83
84 84 person = Person.new
85   - person.name # => nil
86   - person.changed? # => false
  85 + person.name # => nil
  86 + person.changed? # => false
87 87 person.name = 'bob'
88   - person.changed? # => true
89   - person.changed # => ['name']
90   - person.changes # => { 'name' => [nil, 'bob'] }
  88 + person.changed? # => true
  89 + person.changed # => ['name']
  90 + person.changes # => { 'name' => [nil, 'bob'] }
91 91 person.name = 'robert'
92 92 person.save
93 93 person.previous_changes # => {'name' => ['bob, 'robert']}

0 comments on commit 70db385

Please sign in to comment.
Something went wrong with that request. Please try again.