aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations.rb
Commit message (Collapse)AuthorAgeFilesLines
* Accept array of attributes as arg also, like 2.3Jeremy Kemper2010-02-251-1/+1
|
* Add validators reflection so you can do 'Person.validators' and ↵Prem Sichanugrist2010-02-211-3/+18
| | | | | | 'Person.validators_on(:name)'. Signed-off-by: José Valim <jose.valim@gmail.com>
* Full update on ActiveModel documentationMikel Lindsaar2010-02-011-1/+38
|
* Allow :if, :unless, :on, :allow_nil and :allow_blank as shared options in ↵José Valim2010-01-071-3/+1
| | | | validates.
* Add validates method as shortcut to setup validators for a given set of ↵jamie2010-01-071-27/+40
| | | | | | | | | | | | | | | attributes: class Person < ActiveRecord::Base include MyValidators validates :name, :presence => true, :uniqueness => true, :length => { :maximum => 100 } validates :email, :presence => true, :email => true end [#3058 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge commit 'josevalim/validations'Jeremy Kemper2009-12-281-33/+23
|\
| * validates_each uses a BlockValidator.José Valim2009-12-231-33/+23
| |
* | All AMo modules are safe to deferJoshua Peek2009-12-221-0/+1
|/
* Move validator, human_name and human_attribute_name to ActiveModel, remove ↵José Valim2009-10-201-0/+1
| | | | | | 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-6/+4
|
* Refactor new callbacks and AR implementation.José Valim2009-09-081-2/+2
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Changed ActiveRecord to use new callbacks and speed up observers by only ↵José Valim2009-09-081-6/+10
| | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Use send instead of instance_evalPratik Naik2009-08-061-1/+1
|
* Allow validations to use values from custom readers [#2936 state:resolved]James Hill2009-08-051-1/+23
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Add some missing dependenciesYehuda Katz2009-07-151-0/+2
|
* Simplify AMo validation attribute readerJoshua Peek2009-06-171-5/+1
|
* Properly require ActiveModel validation dependenciesJoshua Peek2009-06-081-4/+6
|
* Use AS::Concern in ActiveModelJoshua Peek2009-05-301-4/+5
|
* Deprecate Model#validate/validate_on_create/validate_on_update. Use ↵Pratik Naik2009-03-211-9/+0
| | | | Model.validate :method and likewise
* Get rid of active_model/core and active_model/callbacksPratik Naik2009-03-211-2/+0
|
* Remove DEFAULT_VALIDATION_OPTIONS from validationsPratik Naik2009-03-211-2/+0
|
* Move validate_on_create and validate_on_update from ActiveModel to ActiveRecordPratik Naik2009-03-211-6/+2
|
* Add I18n translations to ActiveModel and move more AR specific parts to ↵Pratik Naik2009-03-201-37/+14
| | | | ActiveRecord::Validations
* Move all the Active Record validations to Active ModelPratik Naik2009-03-191-12/+29
|
* Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵Jeremy Kemper2008-08-311-1/+1
| | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb
* initial statemachine machine and state classesrick2008-06-281-1/+1
|
* tweak activemodel load order a bitrick2008-06-271-0/+2
|
* Improve documentation coverage and markupXavier Noria2008-05-021-10/+10
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Use define_callbacks helper for ActiveRecord validations.Joshua Peek2008-04-201-17/+1
|
* Tidy up ActiveSupport::Callbacks::CallbackChain instance API.Joshua Peek2008-04-171-2/+1
|
* Move it around a bitDavid Heinemeier Hansson2008-04-011-14/+64
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Splitting them up firstDavid Heinemeier Hansson2008-04-011-585/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9173 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecate some more legacyDavid Heinemeier Hansson2008-03-311-45/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9172 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Something more to work withDavid Heinemeier Hansson2008-03-311-1/+686
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9171 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* initial experimental commit of active_modelRick Olson2007-11-091-0/+4
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8118 5ecf4fe2-1ee6-0310-87b1-e25e094e27de