aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/with.rb
Commit message (Collapse)AuthorAgeFilesLines
* deprecate Validator#setup (to get rid of a respond_to call). validators do ↵Nick Sutterer2013-05-231-1/+2
| | | | their setup in their constructor now.
* minor edits and remove mixed titles in AM::Validations docs [ci skip]Francesco Rodriguez2012-10-251-1/+1
|
* update ActiveModel::Valdations#validates_with docs [ci skip]Francesco Rodriguez2012-07-291-16/+18
|
* Set hash value instead of merge a single key, and use flatten! if possibleCarlos Antonio da Silva2012-06-261-2/+4
| | | | | | | | There's no need to create two extra hashes with options.merge(another_hash), with the goal of setting only one value, so lets just set it. Also refactor validates_each to use _merge_attributes, like other validates_* helpers do.
* add :nodoc: to internal implementations [ci skip]Francesco Rodriguez2012-06-251-2/+2
|
* fixing validates_with docsFrancesco Rodriguez2012-05-161-6/+4
|
* minor docs improvementsOscar Del Ben2012-04-261-3/+3
|
* Cosmetic fixes in AM validatations docsAlexey Vakhov2011-11-271-1/+1
|
* Use .add instead of << to add errorsEvgeniy Dolzhenko2011-10-111-1/+1
|
* Implemented strict validation conceptBogdan Gusiev2011-08-171-2/+4
| | | | | | | In order to deliver debug information to dev team instead of display error message to end user Implemented strict validation concept that suppose to define validation that always raise exception when fails
* Fix example code for #validates_with instance methodBen Marini2011-07-241-2/+2
|
* Configuration options are symbolsPaco Guzman2011-03-061-2/+2
|
* Optionally pass in the attribute being validated to an instance method validatorCarl Lerche2011-02-051-1/+7
|
* Be able to pass a validator method to #validatesCarl Lerche2011-02-051-0/+6
|
* Refactor previous commit a bit [#4057 state:resolved]José Valim2010-06-211-3/+0
|
* Add titles to the rest of the files in active_model/validations/*Rizwan Reza2010-06-151-0/+2
|
* minor changes to instance level validations implementation based on feedback ↵Josh Kalderimis2010-05-131-25/+12
| | | | from José Valim
* validation macros can now be used within an instanceJosh Kalderimis2010-05-131-0/+66
|
* Add validators reflection so you can do 'Person.validators' and ↵Prem Sichanugrist2010-02-211-0/+9
| | | | | | 'Person.validators_on(:name)'. Signed-off-by: José Valim <jose.valim@gmail.com>
* Add validates method as shortcut to setup validators for a given set of ↵jamie2010-01-071-18/+29
| | | | | | | | | | | | | | | 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>
* validates_each uses a BlockValidator.José Valim2009-12-231-2/+2
|
* Move validations in ActiveModel to validators, however all validatity checks ↵José Valim2009-12-231-4/+1
| | | | are still in the class method.
* Validator is simply sent to validate method. However, the API needs to ↵José Valim2009-12-221-5/+3
| | | | change, so validate accepts a record.
* Changed ActiveRecord to use new callbacks and speed up observers by only ↵José Valim2009-09-081-1/+1
| | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Introduce validates_with to encapsulate attribute validations in a class.Jeff Dean2009-08-091-0/+64
[#2630 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>