diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-09-07 17:16:54 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-09-07 17:16:54 -0300 |
commit | 7b9b0b531f9cb6a64737efc5c46890b4609847bf (patch) | |
tree | 22a37eeb9b3418a86b62051b9ece467a45b02443 /activemodel/CHANGELOG.md | |
parent | 51dd2588433457960cca592d5b5dac6e0537feac (diff) | |
download | rails-7b9b0b531f9cb6a64737efc5c46890b4609847bf.tar.gz rails-7b9b0b531f9cb6a64737efc5c46890b4609847bf.tar.bz2 rails-7b9b0b531f9cb6a64737efc5c46890b4609847bf.zip |
Revert "Merge pull request #21069 from dmitry/feature/validate-multiple-contexts-at-once"
This reverts commit 51dd2588433457960cca592d5b5dac6e0537feac, reversing
changes made to ecb4e4b21b3222b823fa24d4a0598b1f2f63ecfb.
This broke Active Record tests
Diffstat (limited to 'activemodel/CHANGELOG.md')
-rw-r--r-- | activemodel/CHANGELOG.md | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md index 769c0d6291..54fe5794e1 100644 --- a/activemodel/CHANGELOG.md +++ b/activemodel/CHANGELOG.md @@ -1,21 +1,3 @@ -* 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.errors.messages # => {:name=>["can't be blank"], :title=>["can't be blank"]} - - *Dmitry Polushkin* - * Add case_sensitive option for confirmation validator in models. *Akshat Sharma* |