diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-09-08 15:43:45 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-09-08 15:43:45 -0300 |
commit | 997acb9aadab4df57b5a4ce88ddce3ec9d5f5f45 (patch) | |
tree | 4ebdfc62518fcf144cce6235a4c1d95d868fd2b9 | |
parent | 72889a6be4ec4afd68d3e4c3ae972099e080478a (diff) | |
parent | aef6b7996741c21f7c95004017aeb805f8a4decb (diff) | |
download | rails-997acb9aadab4df57b5a4ce88ddce3ec9d5f5f45.tar.gz rails-997acb9aadab4df57b5a4ce88ddce3ec9d5f5f45.tar.bz2 rails-997acb9aadab4df57b5a4ce88ddce3ec9d5f5f45.zip |
Merge pull request #21556 from artofhuman/master
Fix typo in activemodel changelog [ci skip]
-rw-r--r-- | activemodel/CHANGELOG.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md index d7e64b8bf0..bf0120122d 100644 --- a/activemodel/CHANGELOG.md +++ b/activemodel/CHANGELOG.md @@ -1,17 +1,17 @@ * Validate multiple contexts on `valid?` and `invalid?` at once. Example: - + class Person include ActiveModel::Validations - + attr_reader :name, :title validates_presence_of :name, on: :create validates_presence_of :title, on: :update end - + person = Person.new - person.valid?([:create, :update]) # => true + person.valid?([:create, :update]) # => false person.errors.messages # => {:name=>["can't be blank"], :title=>["can't be blank"]} *Dmitry Polushkin* |