diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-04-30 02:41:44 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-04-30 02:41:44 +0900 |
commit | 89389428b5d04e14f09009ac9af593d7c3da709f (patch) | |
tree | c437f7f6a8e1ed223cd2b90c0aeeb6e4c529d3e2 /activemodel | |
parent | 26878bdb00a52ded3be35ba1da2517a890127209 (diff) | |
download | rails-89389428b5d04e14f09009ac9af593d7c3da709f.tar.gz rails-89389428b5d04e14f09009ac9af593d7c3da709f.tar.bz2 rails-89389428b5d04e14f09009ac9af593d7c3da709f.zip |
Cleanup CHANGELOGs [ci skip]
* Remove trailing spaces.
* Add backticks around method and command.
* Fix indentation.
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/CHANGELOG.md | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md index cdba0cee12..e707a65147 100644 --- a/activemodel/CHANGELOG.md +++ b/activemodel/CHANGELOG.md @@ -4,27 +4,27 @@ Change `#values` to only return the not empty values. - Example: - - # Before - person = Person.new - person.errors.keys # => [] - person.errors.values # => [] - person.errors.messages # => {} - person.errors[:name] # => [] - person.errors.messages # => {:name => []} - person.errors.keys # => [:name] - person.errors.values # => [[]] - - # After - person = Person.new - person.errors.keys # => [] - person.errors.values # => [] - person.errors.messages # => {} - person.errors[:name] # => [] - person.errors.messages # => {:name => []} - person.errors.keys # => [] - person.errors.values # => [] + Example: + + # Before + person = Person.new + person.errors.keys # => [] + person.errors.values # => [] + person.errors.messages # => {} + person.errors[:name] # => [] + person.errors.messages # => {:name => []} + person.errors.keys # => [:name] + person.errors.values # => [[]] + + # After + person = Person.new + person.errors.keys # => [] + person.errors.values # => [] + person.errors.messages # => {} + person.errors[:name] # => [] + person.errors.messages # => {:name => []} + person.errors.keys # => [] + person.errors.values # => [] *bogdanvlviv* |