Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | AM::Errors: allow :full_messages parameter for #as_json | Bogdan Gusiev | 2012-02-20 | 1 | -0/+10 |
| | |||||
* | test title changed corresponding to the test | prasath | 2012-02-09 | 1 | -1/+1 |
| | |||||
* | replacing ordered hash to ruby hash | prasath | 2012-02-08 | 1 | -1/+1 |
| | |||||
* | Fix ActiveModel::Errors#dup | Paweł Kondzior | 2012-01-16 | 1 | -0/+8 |
| | | | | | | | | | Since ActiveModel::Errors instance keeps all error messages as hash we should duplicate this object as well. Previously ActiveModel::Errors was a subclass of ActiveSupport::OrderedHash, which results in different behavior on `dup`, this may result in regression for people relying on it. | ||||
* | Add ActiveModel::Errors#delete, which was not available after move to use ↵ | Piotr Sarnacki | 2012-01-16 | 1 | -0/+7 |
| | | | | delegation | ||||
* | New #added? method on ActiveModel::Errors | Martin Svalin | 2011-10-19 | 1 | -0/+43 |
| | | | The #added? method makes it possible to check if a specific error has been added, using the same parameters as for #add. | ||||
* | ActiveModel::Errors#generate_message without i18n_scope, and more test cases ↵ | Martin Svalin | 2011-10-17 | 1 | -0/+21 |
| | | | | for #add | ||||
* | Added test for obj.errors.as_json | Lawrence Pit | 2011-09-09 | 1 | -0/+11 |
| | |||||
* | Add ability to get an individual full error message + test for full_messages. | Lawrence Pit | 2011-09-09 | 1 | -2/+18 |
| | |||||
* | add has_key? to ActiveModel::Errors | Damien Mathieu | 2011-09-06 | 1 | -0/+6 |
| | |||||
* | Handle the empty array correctly. | thedarkone | 2011-07-27 | 1 | -0/+1 |
| | |||||
* | implementing include? on AM::Errors | Aaron Patterson | 2011-02-09 | 1 | -0/+6 |
| | |||||
* | fix difference between behaviour of blank and empty | Hemant Kumar | 2011-01-05 | 1 | -0/+6 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | ActiveModel::Errors.to_hash returns plain OrderedHash and used in to_json ↵ | Thilo Utke | 2010-12-01 | 1 | -0/+5 |
| | | | | | | serialization to properly handle multiple errors per attribute [#5615 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Revert "Fix generation of wrong json string when field has multiple errors" | José Valim | 2010-12-01 | 1 | -10/+0 |
| | | | | This reverts commit a9b666b51d28b2e74da630c31327dee7cbe96d37. | ||||
* | Fix generation of wrong json string when field has multiple errors | Krekoten' Marjan | 2010-12-01 | 1 | -0/+10 |
| | |||||
* | adding test cases for ActiveModel::Errors | Neeraj Singh | 2010-08-03 | 1 | -0/+65 |
Signed-off-by: José Valim <jose.valim@gmail.com> |