aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/validations.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* | Move uniqueness and association validations to Active RecordPratik Naik2009-03-191-0/+5
| |
* | Move all the Active Record validations to Active ModelPratik Naik2009-03-191-1001/+2
|/
* Merge docrailsPratik Naik2009-03-161-1/+1
|
* Fix spelling of an internal method [#1734 state:resolved]Chris Kampmeier2009-03-121-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add ActiveRecord::Base#invalid? as the opposite of #valid? [#2159 ↵Jeffrey Hardy2009-03-081-0/+5
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure validates_uniqueness_of considers limit on the field. [#1042 ↵Arthur Klepchukov2009-03-071-4/+4
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* support end-exclusive ... Ranges in SQL hash condition sanitization properlyWill Bryant2009-02-061-1/+1
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1865 state:committed]
* validate_length_of should use custom message if given when using in or within.miloops2009-02-011-5/+4
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1057 state:committed]
* Minor refactoring of validates_associated to replace #inject with #collect + ↵Josh Susser2009-01-221-1/+1
| | | | | | #all? [#1686 state:committed]
* Remove dead commented out code [#1467 state:resolved]Yaroslav Markin2008-12-211-1/+0
| | | | Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
* Merge docrailsPratik Naik2008-12-191-3/+3
|
* Make word separator in AR validation error messages configurable.Akira Matsuda2008-12-081-1/+1
| | | | | | [#1294 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge with docrailsPratik Naik2008-12-071-7/+9
|
* Merge docrailsPratik Naik2008-10-051-4/+64
|
* Ignore all exceptions for validates_acceptance_of columns fetch so it can ↵Tarmo Tänav2008-09-261-1/+1
| | | | | | run even without a database connection Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Change all calls to String#chars to String#mb_chars.Manfred Stienstra2008-09-211-1/+1
|
* Merge docrailsPratik Naik2008-09-131-42/+55
|
* Remove the .to_s fix in validates_uniqueness_of, as Chars get quoted correctly.Michael Koziarski2008-09-111-1/+1
|
* Fixes validates_uniquness_of problem with case insensitive string containing ↵wmoxam2008-09-111-1/+1
| | | | | | newline characters Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Merge docrailsPratik Naik2008-09-031-1/+1
|
* More symbols for send and respond_to?.Clemens Kofler2008-09-031-3/+3
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* translates when a message symbol has been set on builtin validationsIain Hecker2008-08-311-1/+2
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Make case insensitive validates_uniqueness_of use unicode aware downcase method.Eugene Pimenov2008-08-291-1/+1
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Merge branch 'master' into i18nSven Fuchs2008-08-211-5/+4
|\
| * Fixed validates_uniqueness_of with decimal columnsTarmo Tänav2008-08-151-5/+4
| | | | | | | | | | | | Only use special case-sensitive comparison operators for text columns in validates_uniqueness_of as mysql can fail at decimal comparisons with the BINARY operator.
* | Custom error messages scope improvedIain Hecker2008-08-211-14/+14
| |
* | Added :value as interpolation variable available to error messagesIain Hecker2008-08-201-8/+10
| |
* | Introduced AR::Base.human_name to validationsIain Hecker2008-08-201-1/+1
| |
* | Cleaned up ActiveRecord i18n scopingIain Hecker2008-08-141-55/+65
| |
* | provide more useful feedback on missing translations for validation error ↵Sven Fuchs2008-08-131-1/+1
| | | | | | | | messages
* | update i18n usage for pluralization hashes (api change)Sven Fuchs2008-08-101-1/+1
|/
* Fix file permissionsTarmo Tänav2008-07-311-0/+0
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* validates_uniqueness_of uses database case sensitivity support instead of ↵Tarmo Tänav2008-07-311-27/+15
| | | | | | using ruby Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Cast value to string in validates_uniqueness_of if the column is of text typeTarmo Tänav2008-07-311-1/+7
| | | | | | This fixes an error for postgresql where "text_column = 100" fails in version 8.3 Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Ensure checked value is a string when validating case-sensitive uniqueness ↵Tom Ward2008-07-191-1/+1
| | | | | | [#361 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge branch 'master' into i18n-mergeJeremy Kemper2008-07-171-22/+22
|\ | | | | | | | | | | | | Conflicts: actionpack/lib/action_view/helpers/form_options_helper.rb activerecord/lib/active_record/validations.rb
| * Merge with docrails.Pratik Naik2008-07-161-24/+24
| |
* | missed to remove a call to to_s while resolving conflicts in validations.rbSven Fuchs2008-07-161-1/+1
| |
* | merge forward to current rails/masterSven Fuchs2008-07-161-9/+14
|\|
| * Allow Infinity (1.0/0.0) to pass validates_numericality_of. [#354 ↵Chris Cherry2008-07-091-1/+1
| | | | | | | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Add :tokenizer option to validates_length_of. [#507 state:resolved]David Lowenfels2008-07-041-6/+10
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | Updated ActiveRecord::Errors#default_error_messages deprecation warning ↵Luca Guidi2008-07-071-1/+1
| | | | | | | | according to i18n changes
* | align with changes in i18nSven Fuchs2008-07-061-3/+2
| |
* | use :default for human_attribute_nameSven Fuchs2008-07-041-1/+1
| |
* | remove core extensions in favor of I18n#translate and I18n#localizeSven Fuchs2008-07-021-3/+3
| |
* | rather cosmetic improvements of test coverageSven Fuchs2008-06-231-4/+4
| |
* | incorporate #translate usage with several default keysSven Fuchs2008-06-211-3/+16
| | | | | | | | | | (use first default key that resolves to a translation). this might, depending on the backend implementation save some expensive lookups (like db lookups)
* | rename Backend::Simple#add_translations to set_translationsSven Fuchs2008-06-201-1/+1
| | | | | | | | because it overwrites existing translations
* | make ActiveRecord::Errors.default_error_messages look up translated error ↵Sven Fuchs2008-06-191-26/+7
| | | | | | | | messages
* | integrating I18n into RailsSven Fuchs2008-06-191-76/+108
|/