aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-02-25 09:14:35 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-02-25 09:14:36 -0300
commit71b3910a7d6c9c9a94af31510683390c2b3a1b23 (patch)
tree5e5b41cf67df8edb1006f694894c73e876c9e3a2 /activemodel
parent06f815e61c7167c91dd4ccc68299219a52e6a89c (diff)
downloadrails-71b3910a7d6c9c9a94af31510683390c2b3a1b23.tar.gz
rails-71b3910a7d6c9c9a94af31510683390c2b3a1b23.tar.bz2
rails-71b3910a7d6c9c9a94af31510683390c2b3a1b23.zip
Point master changelogs to 4-1-stable branch
Remove 4-1 related entries from master [ci skip]
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/CHANGELOG.md73
1 files changed, 1 insertions, 72 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md
index 500d8dc42f..f9246e6c81 100644
--- a/activemodel/CHANGELOG.md
+++ b/activemodel/CHANGELOG.md
@@ -1,72 +1 @@
-* `#to_param` returns `nil` if `#to_key` returns `nil`. Fixes #11399.
-
- *Yves Senn*
-
-* Ability to specify multiple contexts when defining a validation.
-
- Example:
-
- class Person
- include ActiveModel::Validations
-
- attr_reader :name
- validates_presence_of :name, on: [:verify, :approve]
- end
-
- person = Person.new
- person.valid? # => true
- person.valid?(:verify) # => false
- person.errors.full_messages_for(:name) # => ["Name can't be blank"]
- person.valid?(:approve) # => false
- person.errors.full_messages_for(:name) # => ["Name can't be blank"]
-
- *Vince Puzzella*
-
-* `attribute_changed?` now accepts a hash to check if the attribute was
- changed `:from` and/or `:to` a given value.
-
- Example:
-
- model.name_changed?(from: "Pete", to: "Ringo")
-
- *Tejas Dinkar*
-
-* Fix `has_secure_password` to honor bcrypt-ruby's cost attribute.
-
- *T.J. Schuck*
-
-* Updated the `ActiveModel::Dirty#changed_attributes` method to be indifferent between using
- symbols and strings as keys.
-
- *William Myers*
-
-* Added new API methods `reset_changes` and `changes_applied` to `ActiveModel::Dirty`
- that control changes state. Previsously you needed to update internal
- instance variables, but now API methods are available.
-
- *Bogdan Gusiev*
-
-* Fix `has_secure_password` not to trigger `password_confirmation` validations
- if no `password_confirmation` is set.
-
- *Vladimir Kiselev*
-
-* `inclusion` / `exclusion` validations with ranges will only use the faster
- `Range#cover` for numerical ranges, and the more accurate `Range#include?`
- for non-numerical ones.
-
- Fixes range validations like `:a..:f` that used to pass with values like `:be`.
- Fixes #10593.
-
- *Charles Bergeron*
-
-* Fix regression in `has_secure_password`. When a password is set, but a
- confirmation is an empty string, it would incorrectly save.
-
- *Steve Klabnik* and *Phillip Calvin*
-
-* Deprecate `Validator#setup`. This should be done manually now in the validator's constructor.
-
- *Nick Sutterer*
-
-Please check [4-0-stable](https://github.com/rails/rails/blob/4-0-stable/activemodel/CHANGELOG.md) for previous changes.
+Please check [4-1-stable](https://github.com/rails/rails/blob/4-1-stable/activemodel/CHANGELOG.md) for previous changes.