Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | add description ActiveModel::StrictValidationField [ci skip] | Francesco Rodriguez | 2012-06-23 | 1 | -0/+10 | |
| | | ||||||
| * | update ActiveModel::Errors#include? documentation [ci skip] | Francesco Rodriguez | 2012-06-22 | 1 | -1/+1 | |
| | | ||||||
| * | add documentation and examples to ActiveModel::Errors [ci skip] | Francesco Rodriguez | 2012-06-22 | 1 | -4/+26 | |
| | | ||||||
| * | update ActiveModel::Errors documentation and minor fixes [ci skip] | Francesco Rodriguez | 2012-06-22 | 1 | -60/+99 | |
| | | ||||||
* | | add :nodoc: to internal implementations [ci skip] | Francesco Rodriguez | 2012-06-22 | 1 | -1/+1 | |
| | | ||||||
* | | change param name to improve documentation | Francesco Rodriguez | 2012-06-22 | 1 | -2/+2 | |
|/ | | | | | | | | | | | | | | | The keys of the error messages are actually attribute names. It makes the documentation easier to understand: # Returns +true+ if the error messages include an error for the given # +attribute+, +false+ otherwise. # # person.errors.messages # => { :name => ["can not be nil"] } # person.errors.include?(:name) # => true # person.errors.include?(:age) # => false def include?(attribute) (v = messages[attribute]) && v.any? end | |||||
* | Refactor AMo::Errors | Carlos Antonio da Silva | 2012-04-27 | 1 | -7/+7 | |
| | | | | | * Use merge!, remove reverse_merge * Use case statement instead of is_a? checks | |||||
* | Fix confusing example in ActiveModel::Errors | Thibaut Courouble | 2012-04-17 | 1 | -2/+2 | |
| | ||||||
* | Updated/changed useless tr/gsubs | Jurriaan Pruis | 2012-04-03 | 1 | -1/+1 | |
| | ||||||
* | AM::Errors: allow :full_messages parameter for #as_json | Bogdan Gusiev | 2012-02-20 | 1 | -3/+14 | |
| | ||||||
* | replacing ordered hash to ruby hash | prasath | 2012-02-08 | 1 | -4/+3 | |
| | ||||||
* | Generate strict validation error messages with attribute name | Carlos Antonio da Silva | 2012-02-01 | 1 | -1/+1 | |
| | ||||||
* | Fix translate_error reference for Error#add documentation | Jonathan del Strother | 2012-01-25 | 1 | -1/+1 | |
| | ||||||
* | Remove redundant #to_sym | Paweł Kondzior | 2012-01-16 | 1 | -1/+1 | |
| | ||||||
* | Fix ActiveModel::Errors#dup | Paweł Kondzior | 2012-01-16 | 1 | -0/+5 | |
| | | | | | | | | | 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/+5 | |
| | | | | delegation | |||||
* | removed unnessary require active_support/core_ext/array_wrap | Karunakar (Ruby) | 2012-01-06 | 1 | -1/+0 | |
| | ||||||
* | Fixed bug when error message is an empty string. | Antonio Roberto | 2011-12-16 | 1 | -1/+2 | |
| | ||||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2011-10-20 | 1 | -3/+2 | |
|\ | ||||||
| * | Removed mention of deprecated ActiveModel::Errors#on | Martin Svalin | 2011-10-19 | 1 | -3/+2 | |
| | | ||||||
* | | New #added? method on ActiveModel::Errors | Martin Svalin | 2011-10-19 | 1 | -7/+23 | |
| | | | | | | 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 | -4/+8 | |
|/ | | | | for #add | |||||
* | Add ability to get an individual full error message + test for full_messages. | Lawrence Pit | 2011-09-09 | 1 | -14/+17 | |
| | ||||||
* | add has_key? to ActiveModel::Errors | Damien Mathieu | 2011-09-06 | 1 | -0/+1 | |
| | ||||||
* | Implemented strict validation concept | Bogdan Gusiev | 2011-08-17 | 1 | -1/+7 | |
| | | | | | | | In order to deliver debug information to dev team instead of display error message to end user Implemented strict validation concept that suppose to define validation that always raise exception when fails | |||||
* | fix misleading comment (originally made by Tate Johnson, we lost this commit ↵ | Vijay Dev | 2011-08-14 | 1 | -1/+1 | |
| | | | | while porting to the rails repo) | |||||
* | Fixed typo | Tate Johnson | 2011-08-13 | 1 | -1/+1 | |
| | ||||||
* | Handle the empty array correctly. | thedarkone | 2011-08-13 | 1 | -1/+1 | |
| | ||||||
* | fix incorrect output | Vijay Dev | 2011-06-04 | 1 | -1/+1 | |
| | ||||||
* | Remove extra white spaces on ActiveModel docs. | Sebastian Martinez | 2011-05-23 | 1 | -3/+3 | |
| | ||||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-04-03 | 1 | -11/+10 | |
|\ | ||||||
| * | Fix formatting and broken markup | John Firebaugh | 2011-03-28 | 1 | -11/+10 | |
| | | ||||||
* | | Bring back AMo#i18n_key method | Santiago Pastorino | 2011-03-30 | 1 | -2/+2 | |
|/ | ||||||
* | Revert "Properly interpolate i18n keys in modules [#5572 state:resolved]" | Santiago Pastorino | 2011-02-27 | 1 | -2/+2 | |
| | | | | | | | This breaks #6448, you should use :"module/class" as key for namespacing [#6448 state:committed] This reverts commit 8d30193b08bd2321a7a78a1f481bd5e4d4d45557. | |||||
* | implementing include? on AM::Errors | Aaron Patterson | 2011-02-09 | 1 | -0/+5 | |
| | ||||||
* | we do not need message to be an array | Aaron Patterson | 2011-02-09 | 1 | -9/+8 | |
| | ||||||
* | use map rather than array concatenation | Aaron Patterson | 2011-02-09 | 1 | -9/+4 | |
| | ||||||
* | favor composition over inheritence | Aaron Patterson | 2011-02-09 | 1 | -9/+33 | |
| | ||||||
* | use 1 call to concat rather than calling << n times | Aaron Patterson | 2011-02-09 | 1 | -4/+4 | |
| | ||||||
* | fix difference between behaviour of blank and empty | Hemant Kumar | 2011-01-05 | 1 | -1/+1 | |
| | | | | 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 | -1/+7 | |
| | | | | | | 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 | |
| | ||||||
* | Properly interpolate i18n keys in modules [#5572 state:resolved] | Rodrigo Rosenfeld Rosas | 2010-09-24 | 1 | -2/+2 | |
| | ||||||
* | Remove deprecations in ActiveModel. | José Valim | 2010-08-29 | 1 | -23/+0 | |
| | ||||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -30/+30 | |
| | | | | 's/[ \t]*$//' -i {} \;) | |||||
* | Merge remote branch 'docrails/master' | Xavier Noria | 2010-08-05 | 1 | -2/+2 | |
|\ | ||||||
| * | fixing documentation | Neeraj Singh | 2010-08-03 | 1 | -2/+2 | |
| | | ||||||
* | | Tidy up error.rb code | Subba Rao Pasupuleti | 2010-08-03 | 1 | -5/+1 | |
|/ | | | | | | [#5288 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | |||||
* | ActiveModel::Errors json serialization to work as Rails 3b4 [#5254 ↵ | Alex Le | 2010-08-02 | 1 | -2/+2 | |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> |