aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/validations.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
|/
* Simplify ActiveRecord::Base#update_attributePratik Naik2008-06-071-9/+0
|
* Substitute value into validates_format_of messageJohn D. Hume2008-05-311-1/+1
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Merge docrails.Pratik Naik2008-05-251-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix validates_uniqueness_of for SQL keywords [#23 state:resolved]Alex MacCaw2008-05-111-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge docrails:Pratik Naik2008-05-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit e6afd8b2736364322b673bbdcca3e9b38b6d3da0 Author: Xavier Noria <fxn@hashref.com> Date: Thu May 8 23:49:36 2008 +0200 Overall documentation improvement and markup corrections. Zillion changes. commit 2fead68b3192332eee27945ed95a94a64ca73f70 Author: Austin Putman <austin@emmanuel.local> Date: Wed May 7 19:35:46 2008 -0700 Documented class methods on ActionController::Routing. These are dangerous, and mostly used for testing. commit f5b84182dbc39bea79c8ee319c688d00fa99f9d1 Author: Teflon Ted <github@rudiment.net> Date: Wed May 7 16:08:49 2008 -0400 Added explanation about errant inflections not being patched in the future in order to avoid breaking legacy applications. commit 370f4f51722cec49ace17093d29e9ce9e8f15cfb Author: Sunny Ripert <negatif@gmail.com> Date: Wed May 7 14:00:59 2008 +0200 Applied list conventions in AR::Base commit 5bd18429f09d44e75191bec42a6db04bd33f3030 Author: Sunny Ripert <negatif@gmail.com> Date: Wed May 7 13:53:35 2008 +0200 Renamed Options list to Attributes list whenever they weren't option hashes in AR::Base commit d912bd5672316454457ae83f6e9dda5197beeb6f Author: Yaroslav Markin <yaroslav@markin.net> Date: Wed May 7 13:50:28 2008 +0400 Add a filter_parameter_logging usage hint to generated ApplicationController. This may help to remind the developer to filter sensitive information from application logs. Closes #11578 commit b243de0db3c2605121e055079854af5090d06374 Author: Jack Danger Canty <git@6brand.com> Date: Tue May 6 23:39:47 2008 -0700 doc: disambiguating an example ActiveRecord class commit f81d771f0657ae8375b84a77a059812cce5d6fd9 Author: Jack Danger Canty <git@6brand.com> Date: Tue May 6 23:35:05 2008 -0700 doc: ActiveRecord::Reflection::AssociationReflection#through_reflection Added documentation demonstrating the use of #through_reflection for finding intervening reflection objects for HasManyThrough and HasOneThrough. commit ae6b46f00b5b8b2939c6b37ce3329c83de7e71db Author: Cheah Chu Yeow <chuyeow@gmail.com> Date: Wed May 7 13:47:41 2008 +0800 Document AttributeAssignmentError and MultiparameterAssignmentErrors. commit 8f463550b597db2156b67733f31aed13487fbc3a Author: John Barnette <jbarnette@gmail.com> Date: Tue May 6 22:46:44 2008 -0700 Killing/fixing a bunch of outdated language in the AR README. commit aca44bcd92ef783abdf484b58abdde6786db0f89 Author: Cheah Chu Yeow <chuyeow@gmail.com> Date: Wed May 7 13:34:52 2008 +0800 Make a note about ActiveResource::Timeouterror being raised when ARes calls timeout. commit 284a930a93fbee16e25d06392779dbf2f03e9e12 Author: Jonathan Dance <jd@wuputah.com> Date: Tue May 6 14:58:26 2008 -0400 improvements to the page caching docs commit 9482da621390c874da7c921c8bd6230caae7035a Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 18:13:40 2008 +0200 validates_numericality_of() "integer" option really is "only_integer" commit e9afd6790a8f530528f6597a7f59bb283be754f6 Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 12:11:59 2008 +0200 Harmonized hash notation in AR::Base commit 67ebf14a91ffd970b582be4ff2991d691a9cf3e1 Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 12:06:19 2008 +0200 Turned options into rdoc-lists in AR::Base commit 0ec7c0a41d889d4e5382b9dff72f1aaba89bf297 Author: Marshall Huss <mwhuss@Macbook.local> Date: Sun May 4 23:21:33 2008 -0400 Added information of how to set element_name in the case the user has a name confliction with an existing model Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improve documentation coverage and markupXavier Noria2008-05-021-108/+108
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Added block-setting of attributes for Base.create like Base.new already has ↵David Heinemeier Hansson2008-04-301-2/+3
| | | | (Adam Meehan) [#39 state:resolved]
* Use define_callbacks helper for ActiveRecord validations.Joshua Peek2008-04-201-21/+5
|
* Tidy up ActiveSupport::Callbacks::CallbackChain instance API.Joshua Peek2008-04-171-2/+1
|
* Change validates_uniqueness_of :case_sensitive option default back to true ↵Rick Olson2008-04-101-2/+2
| | | | | | (from [9160]). Love your database columns, don't LOWER them. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve documentation.Pratik Naik2008-04-051-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that validates_uniqueness_of works with with_scope. Closes #9235. ↵Pratik Naik2008-03-311-6/+8
| | | | | | [nik.wakelin, cavalle] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9168 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix case-sensitive validates_uniqueness_of. Closes #11366 [miloops]Jeremy Kemper2008-03-311-19/+37
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add :message option to validates_numericality_of. Closes #11456 [miloops, ↵Jeremy Kemper2008-03-311-1/+3
| | | | | | mdempfle] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de