Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | 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> | |||||
* | edit pass to apply API guideline wrt the use of "# =>" in example code | Xavier Noria | 2010-07-30 | 1 | -10/+10 | |
| | ||||||
* | Add a missing require to allow the usage of Array#to_xml | Santiago Pastorino | 2010-07-03 | 1 | -0/+1 | |
| | ||||||
* | Work around the fact the JSON gem was overwriting to_json implementation for ↵ | José Valim | 2010-06-26 | 1 | -10/+7 | |
| | | | | | | | all Ruby core classes. This is required because the JSON gem is incompatible with Rails behavior and was not allowing ActiveModel::Errors to be serialized. So we need to ensure Rails implementation is the one triggered. [#4890 state:resolved] | |||||
* | Regression with how base errors messages are added to a model. Works ↵ | Josh Kalderimis | 2010-06-23 | 1 | -1/+1 | |
| | | | | | | correctly for both string error messages and symbol translated messages. Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Refactor previous commit a bit [#4057 state:resolved] | José Valim | 2010-06-21 | 1 | -4/+7 | |
| | ||||||
* | Make ActiveModel::Errors#add_on_blank and #add_on_empty accept an options ↵ | Jeroen van Dijk | 2010-06-21 | 1 | -13/+39 | |
| | | | | | | | | | | | | | | | | hash and make various Validators pass their (filtered) options. This makes it possible to pass additional options through Validators to message generation. E.g. plugin authors want to add validates_presence_of :foo, :format => "some format". Also, cleanup the :default vs :message options confusion in ActiveModel validation message generation. Also, deprecate ActiveModel::Errors#add_on_blank(attributes, custom_message) in favor of ActiveModel::Errors#add_on_blank(attributes, options). Also, refactoring of ActiveModel and ActiveRecord Validation tests. Test are a lot more DRY now. Better test coverage as well now. The first four points were reapplied from an older patch of Sven Fuchs which didn't apply cleanly anymore and was not complete yet. Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-15 | 1 | -1/+1 | |
|\ | ||||||
| * | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-11 | 1 | -1/+1 | |
| | | ||||||
* | | Minor changes to active_model/errors.rb | Rizwan Reza | 2010-06-14 | 1 | -8/+16 | |
|/ | ||||||
* | revises rdoc of AMo::Error#add [#4738 state:resolved] | Xavier Noria | 2010-06-01 | 1 | -6/+6 | |
| | ||||||
* | Use %{} syntax in I18n (faster) instead of {{}}. | José Valim | 2010-05-01 | 1 | -1/+1 | |
| | ||||||
* | Re-define empty? for errors to check if the values inside the OrderedHash ↵ | Ryan Bigg | 2010-04-10 | 1 | -0/+5 | |
| | | | | | | are empty rather than the OrderedHash itself. [#4356 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | errors.rb needs to be declared as UTF-8 [#3941 state:resolved] | Aaron Patterson | 2010-04-02 | 1 | -0/+2 | |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | |||||
* | adds missing requires for Object#blank? and Object#present? | Xavier Noria | 2010-03-28 | 1 | -0/+1 | |
| | ||||||
* | Use Array.wrap uniformly | Jeremy Kemper | 2010-03-27 | 1 | -1/+2 | |
| | ||||||
* | Full update on ActiveModel documentation | Mikel Lindsaar | 2010-02-01 | 1 | -0/+107 | |
| | ||||||
* | Drop AR I18n deprecation and simple use errors.messages as fallback. | José Valim | 2010-01-30 | 1 | -7/+14 | |
| | ||||||
* | Adding Proc support to validation messages so that they can become a little ↵ | Samuel Elliott | 2010-01-17 | 1 | -0/+2 | |
| | | | | | | more dynamic, allowing for customisations during the request [#3514 status:resolved]. Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Errors messages are now moved from :activerecord.errors to simply :errors on ↵ | José Valim | 2010-01-07 | 1 | -3/+2 | |
| | | | | I18n yml files. | |||||
* | Use activerecord.errors.format as in Rails 2.3.5. | José Valim | 2010-01-02 | 1 | -3/+3 | |
| | ||||||
* | Be sure to convert namespaced names to we have 'Parrots name' instead of ↵ | José Valim | 2010-01-02 | 1 | -2/+3 | |
| | | | | 'Parrots.name' in error messages. | |||||
* | Move validator, human_name and human_attribute_name to ActiveModel, remove ↵ | José Valim | 2009-10-20 | 1 | -10/+9 | |
| | | | | | | deprecated error messages and add i18n_scope and lookup_ancestors. Signed-off-by: Carl Lerche <carllerche@mac.com> | |||||
* | Fix typo. | Brian Donovan | 2009-09-17 | 1 | -1/+1 | |
| | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | |||||
* | Ensure validation errors to be ordered in declared order | Akira Matsuda | 2009-09-11 | 1 | -1/+2 | |
| | | | | | | [#2301 state:committed milestone:2.3.5] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Use send instead of instance_eval | Pratik Naik | 2009-08-06 | 1 | -3/+3 | |
| | ||||||
* | Allow validations to use values from custom readers [#2936 state:resolved] | James Hill | 2009-08-05 | 1 | -3/+3 | |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | Simplify AMo validation attribute reader | Joshua Peek | 2009-06-17 | 1 | -3/+3 | |
| | ||||||
* | each yields per message not per attribute | Jeremy Kemper | 2009-06-08 | 1 | -0/+1 | |
| | ||||||
* | Properly require ActiveModel validation dependencies | Joshua Peek | 2009-06-08 | 1 | -7/+9 | |
| | ||||||
* | Merge branch 'master' into active_model | Joshua Peek | 2009-05-29 | 1 | -1/+2 | |
|\ | | | | | | | | | | | | | | | | | | | | | Conflicts: activemodel/lib/active_model/core.rb activemodel/test/cases/state_machine/event_test.rb activemodel/test/cases/state_machine/state_transition_test.rb activerecord/lib/active_record/validations.rb activerecord/test/cases/validations/i18n_validation_test.rb activeresource/lib/active_resource.rb activeresource/test/abstract_unit.rb | |||||
* | | Add I18n translations to ActiveModel and move more AR specific parts to ↵ | Pratik Naik | 2009-03-20 | 1 | -34/+22 | |
| | | | | | | | | ActiveRecord::Validations | |||||
* | | Make Active Resource use ActiveModel::Errors | Pratik Naik | 2009-03-19 | 1 | -1/+6 | |
| | |