aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/validations.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove extra white spaces on ActiveRecord docs.Sebastian Martinez2011-05-231-1/+1
|
* updated AR#create! to accept an options hash so the mass-assignment security ↵Josh Kalderimis2011-05-121-3/+3
| | | | role can be passed in, also updated the Changelog to mention the change to some of the AR method signatures.
* Better formatting hereSebastian Martinez2011-04-241-3/+3
|
* copy-edits 8d96b89Xavier Noria2011-02-211-7/+7
|
* Typo: fixing the theNicholas Rowe2011-02-191-1/+1
|
* Clarification of ActiveRecord ActiveModel validation documentationPeer Allan2011-02-181-1/+15
|
* ActiveRecord#save(false) is now deprecated, now it is save(:validate => false)Jaime Iniesta2011-01-181-1/+1
|
* Partialy revert f1c13b0dd7b22b5f6289ca1a09f1d7a8c7c8584bJosé Valim2010-11-281-1/+1
|
* use persisted? instead of new_record? wherever possibleDavid Chelimsky2010-11-091-1/+1
| | | | | | | | | | | - persisted? is the API defined in ActiveModel - makes it easier for extension libraries to conform to ActiveModel APIs without concern for whether the extended object is specifically ActiveRecord [#5927 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Refactor AR validations a bitCarlos Antonio da Silva2010-09-061-5/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Cleanup deprecation warnings in active recordCarlos Antonio da Silva2010-09-061-12/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge remote branch 'rails/master'Xavier Noria2010-06-201-2/+2
|\ | | | | | | | | Conflicts: actionpack/lib/abstract_controller/base.rb
| * moving before_validation and after_validation functionality from ↵Neeraj Singh2010-06-191-2/+2
| | | | | | | | | | | | | | | | ActiveRecord to ActiveModel [#4653 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* | Adds title to the rest of the files in activerecord/libRizwan Reza2010-06-161-0/+3
|/
* Remove undocumented save_without_validation!Pratik Naik2010-05-111-4/+0
|
* Succint save definitionPratik Naik2010-05-111-4/+2
|
* Make sure valid? preceives the context as in ActiveModel API (ht: Carlos ↵José Valim2010-05-101-25/+22
| | | | Antonio)
* eliminate alias_method_chain from ActiveRecordwycats2010-05-091-41/+30
|
* updated AR to work with the AMo model validation changesJosh Kalderimis2010-05-081-1/+5
|
* Drop AR I18n deprecation and simple use errors.messages as fallback.José Valim2010-01-301-2/+2
|
* save(false) is gone, use save(:validate => false) instead.José Valim2010-01-171-1/+11
|
* Errors messages are now moved from :activerecord.errors to simply :errors on ↵José Valim2010-01-071-1/+1
| | | | I18n yml files.
* Get rid of DeprecatedCallbacks in ActiveRecord::Associations and finally ↵José Valim2009-12-301-2/+0
| | | | remove it.
* Integer#even? and Integer#odd? are not needed for Ruby >= 1.8.7Xavier Noria2009-11-091-2/+0
|
* 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]