aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/validations.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Move validator, human_name and human_attribute_name to ActiveModel, remove ↵José Valim2009-10-201-89/+0
| | | | | | deprecated error messages and add i18n_scope and lookup_ancestors. Signed-off-by: Carl Lerche <carllerche@mac.com>
* Callbacks, DeprecatedCallbacks = NewCallbacks, CallbacksJoshua Peek2009-10-121-7/+7
|
* Changed ActiveRecord to use new callbacks and speed up observers by only ↵José Valim2009-09-081-30/+5
| | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* allow ActiveRecord#RecordInvalid exception message to be localizedSven Fuchs2009-08-261-1/+2
| | | | | | [#2754 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge docrailsPratik Naik2009-07-251-1/+1
|
* Simplify AMo validation attribute readerJoshua Peek2009-06-171-4/+0
|
* Update for Active Model yielding per error not per attributeJeremy Kemper2009-06-081-0/+1
|
* AS::Concern redefines "include" to lazy include modules as dependenciesJoshua Peek2009-05-291-2/+2
|
* AS::Concern includes InstanceMethods module if it existsJoshua Peek2009-05-291-2/+0
|
* Merge branch 'master' into active_modelJoshua Peek2009-05-291-10/+12
|\ | | | | | | | | | | | | | | | | | | | | 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
| * Break up DependencyModule's dual function of providing a "depend_on" DSL and ↵Joshua Peek2009-05-281-1/+1
| | | | | | | | "included" block DSL into separate modules. But, unify both approaches under AS::Concern.
| * Missing 1.8.7 backport extensionsJeremy Kemper2009-05-181-0/+2
| |
| * Cherry-pick core extensionsJeremy Kemper2009-05-131-3/+2
| |
| * Use DependencyModule for included hooks in ActiveRecordBryan Helmkamp2009-05-111-8/+7
| |
| * Explicitly require builder for to_xmlJeremy Kemper2009-04-301-0/+2
| |
* | Deprecate Model#validate/validate_on_create/validate_on_update. Use ↵Pratik Naik2009-03-211-13/+14
| | | | | | | | Model.validate :method and likewise
* | Move validate_on_create and validate_on_update from ActiveModel to ActiveRecordPratik Naik2009-03-211-2/+12
| |
* | Add I18n translations to ActiveModel and move more AR specific parts to ↵Pratik Naik2009-03-201-0/+115
| | | | | | | | ActiveRecord::Validations
* | Include ActiveModel::Validations from ActiveRecord::ValidationsPratik Naik2009-03-201-20/+29
| |
* | 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
|/