aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/validations
Commit message (Collapse)AuthorAgeFilesLines
* serialized attributes should be serialized before validation [#5525 ↵Aaron Patterson2010-09-071-0/+5
| | | | state:resolved]
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-142-12/+12
| | | | 's/[ \t]*$//' -i {} \;)
* ensuring that description does not exceed 100 columnsNeeraj Singh2010-08-022-12/+17
|
* Make ActiveModel::Errors#add_on_blank and #add_on_empty accept an options ↵Jeroen van Dijk2010-06-212-2/+2
| | | | | | | | | | | | | | | | 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>
* Avoid deprecated String#to_a by using Array.wrap(...) instead of Array(...)Jeremy Kemper2010-04-101-1/+3
|
* use the database to lower case strings rather than ruby. [#4293 state:resolved]Aaron Patterson2010-03-281-4/+2
| | | | Signed-off-by: wycats <wycats@gmail.com>
* Rename Model.active_relation to Model.unscopedPratik Naik2010-01-171-1/+1
|
* Ensure new validates works with uniqueness validator.José Valim2010-01-082-5/+7
|
* Use relations to build uniqueness conditionsPratik Naik2010-01-021-8/+9
|
* Fix uniqueness validation: with_exclusive_scope is not publicJeremy Kemper2009-12-281-1/+1
|
* No need to use ValidationsRepairHelper hack on ActiveModel anymore, ↵José Valim2009-12-231-1/+1
| | | | Model.reset_callbacks(:validate) is enough. However, tests in ActiveRecord are still coupled, so moved ValidationsRepairHelper back there.
* ActiveRecord::Validations are now built on top of Validator as well.José Valim2009-12-232-65/+85
|
* validate uniqueness with limit in utf8Elise Huard2009-08-091-1/+1
| | | | | | [#2653 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Move validate_on_create and validate_on_update from ActiveModel to ActiveRecordPratik Naik2009-03-211-2/+1
|
* Move uniqueness and association validations to Active RecordPratik Naik2009-03-192-0/+206