diff options
author | Martin Svalin <martin@lite.nu> | 2011-10-19 18:47:28 +0200 |
---|---|---|
committer | Martin Svalin <martin@lite.nu> | 2011-10-19 21:29:20 +0200 |
commit | c9ca86c29d4f4d8e1181c20ac0da8e1027a14344 (patch) | |
tree | 9c973e42f16bb24ab09504b8bd5f8eddfdb7951f /activemodel/CHANGELOG | |
parent | 89a164ab9b028d855023c88e4afcdf55276a1363 (diff) | |
download | rails-c9ca86c29d4f4d8e1181c20ac0da8e1027a14344.tar.gz rails-c9ca86c29d4f4d8e1181c20ac0da8e1027a14344.tar.bz2 rails-c9ca86c29d4f4d8e1181c20ac0da8e1027a14344.zip |
New #added? method on ActiveModel::Errors
The #added? method makes it possible to check if a specific error has been added, using the same parameters as for #add.
Diffstat (limited to 'activemodel/CHANGELOG')
-rw-r--r-- | activemodel/CHANGELOG | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activemodel/CHANGELOG b/activemodel/CHANGELOG index 3d26d646b0..bf077bef35 100644 --- a/activemodel/CHANGELOG +++ b/activemodel/CHANGELOG @@ -1,3 +1,5 @@ +* Added ActiveModel::Errors#added? to check if a specific error has been added [Martin Svalin] + * Add ability to define strict validation(with :strict => true option) that always raises exception when fails [Bogdan Gusiev] * Deprecate "Model.model_name.partial_path" in favor of "model.to_partial_path" [Grant Hutchins, Peter Jaros] |