aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorSemyon Pupkov <semen.pupkov@gmail.com>2015-09-08 23:37:17 +0500
committerSemyon Pupkov <semen.pupkov@gmail.com>2015-09-08 23:37:17 +0500
commitaef6b7996741c21f7c95004017aeb805f8a4decb (patch)
tree8158a3cb192d65aedc465fde98ee0c97eb468285 /activemodel
parented3d213eb6b79218eee9bd8b4fa8ac8c147cd114 (diff)
downloadrails-aef6b7996741c21f7c95004017aeb805f8a4decb.tar.gz
rails-aef6b7996741c21f7c95004017aeb805f8a4decb.tar.bz2
rails-aef6b7996741c21f7c95004017aeb805f8a4decb.zip
Fix typo in activemodel changelog
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/CHANGELOG.md8
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*