Ryan Bigg
|
d748cc3cd0
|
Re-define empty? for errors to check if the values inside the OrderedHash are empty rather than the OrderedHash itself. [#4356 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
|
2010-04-10 13:21:20 +02:00 |
|
Aaron Patterson
|
30f3a3df77
|
errors.rb needs to be declared as UTF-8 [#3941 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
|
2010-04-02 09:14:55 -07:00 |
|
Xavier Noria
|
76f024ac8d
|
adds missing requires for Object#blank? and Object#present?
|
2010-03-28 14:15:02 +02:00 |
|
Jeremy Kemper
|
a98db7c6ef
|
Use Array.wrap uniformly
|
2010-03-27 11:50:11 -07:00 |
|
Mikel Lindsaar
|
a07d0f8786
|
Full update on ActiveModel documentation
|
2010-02-01 10:08:20 +11:00 |
|
José Valim
|
d6e2f5013c
|
Drop AR I18n deprecation and simple use errors.messages as fallback.
|
2010-01-30 13:12:12 +01:00 |
|
Samuel Elliott
|
31ea83eb89
|
Adding Proc support to validation messages so that they can become a little more dynamic, allowing for customisations during the request [#3514 status:resolved].
Signed-off-by: José Valim <jose.valim@gmail.com>
|
2010-01-17 14:40:10 +01:00 |
|
José Valim
|
190ce3ab37
|
Errors messages are now moved from :activerecord.errors to simply :errors on I18n yml files.
|
2010-01-07 15:31:49 +01:00 |
|
José Valim
|
7cc0a4cfa1
|
Use activerecord.errors.format as in Rails 2.3.5.
|
2010-01-02 22:27:02 +01:00 |
|
José Valim
|
5fdd0e80a4
|
Be sure to convert namespaced names to we have 'Parrots name' instead of 'Parrots.name' in error messages.
|
2010-01-02 22:27:02 +01:00 |
|
José Valim
|
e714b499cc
|
Move validator, human_name and human_attribute_name to ActiveModel, remove deprecated error messages and add i18n_scope and lookup_ancestors.
Signed-off-by: Carl Lerche <carllerche@mac.com>
|
2009-10-20 17:52:32 -07:00 |
|
Brian Donovan
|
f183288050
|
Fix typo.
Signed-off-by: Yehuda Katz <wycats@gmail.com>
|
2009-09-17 18:30:28 -07:00 |
|
Akira Matsuda
|
0990a13500
|
Ensure validation errors to be ordered in declared order
[#2301 state:committed milestone:2.3.5]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-09-11 18:52:22 -07:00 |
|
Pratik Naik
|
5ce3831faf
|
Use send instead of instance_eval
|
2009-08-06 00:11:28 +01:00 |
|
James Hill
|
cfd421daa2
|
Allow validations to use values from custom readers [#2936 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2009-08-05 11:45:01 -05:00 |
|
Joshua Peek
|
d5d59230f4
|
Simplify AMo validation attribute reader
|
2009-06-17 21:27:54 -05:00 |
|
Jeremy Kemper
|
14de1a9597
|
each yields per message not per attribute
|
2009-06-08 19:37:51 -07:00 |
|
Joshua Peek
|
28f36279cd
|
Properly require ActiveModel validation dependencies
|
2009-06-08 20:32:08 -05:00 |
|
Joshua Peek
|
69742ca8fa
|
Merge branch 'master' into active_model
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
|
2009-05-29 16:06:21 -05:00 |
|
Pratik Naik
|
08a99d0eac
|
Add I18n translations to ActiveModel and move more AR specific parts to ActiveRecord::Validations
|
2009-03-20 21:45:13 +00:00 |
|
Pratik Naik
|
77acfefedf
|
Make Active Resource use ActiveModel::Errors
|
2009-03-19 23:45:08 +00:00 |
|
Pratik Naik
|
8828b2ca67
|
Move all the Active Record validations to Active Model
|
2009-03-19 23:28:59 +00:00 |
|
Pratik Naik
|
dbbae5e00e
|
Merge with docrails
|
2008-12-07 03:27:53 +01:00 |
|
David Heinemeier Hansson
|
9ddc6143e0
|
Something more to work with
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9171 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-31 23:40:34 +00:00 |
|