Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move the validations HelperMethods to its own file | Roque Pinel | 2015-06-21 | 1 | -10/+0 |
| | | | | | | Closes #11209 [Roque Pinel & Steven Yang] | ||||
* | Add a note on custom validation contexts. | Justin Weiss | 2014-08-05 | 1 | -2/+5 |
| | | | | | | | | | The documentation on `:on` for validations was inconsistent, and most only referenced the `:create` and `:update` contexts. I fixed those to be consistent with the documentation on `AM::Validations.validates`, which seemed to have the best docs. [ci skip] | ||||
* | add missing parentheses to validates_with documentation [skip ci] | Steve Agalloco | 2014-04-04 | 1 | -1/+1 |
| | |||||
* | Fix some validators when used on model instance | Eric Hutzelman | 2014-02-26 | 1 | -0/+2 |
| | | | | | | | | Now that Validator #setup is called from the initializer, we need a reference to the model's class to be passed in to allow the validators to continue functioning when used at the instance level. Closes #14134. | ||||
* | deprecate Validator#setup (to get rid of a respond_to call). validators do ↵ | Nick Sutterer | 2013-05-23 | 1 | -1/+2 |
| | | | | their setup in their constructor now. | ||||
* | minor edits and remove mixed titles in AM::Validations docs [ci skip] | Francesco Rodriguez | 2012-10-25 | 1 | -1/+1 |
| | |||||
* | update ActiveModel::Valdations#validates_with docs [ci skip] | Francesco Rodriguez | 2012-07-29 | 1 | -16/+18 |
| | |||||
* | Set hash value instead of merge a single key, and use flatten! if possible | Carlos Antonio da Silva | 2012-06-26 | 1 | -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 Rodriguez | 2012-06-25 | 1 | -2/+2 |
| | |||||
* | fixing validates_with docs | Francesco Rodriguez | 2012-05-16 | 1 | -6/+4 |
| | |||||
* | minor docs improvements | Oscar Del Ben | 2012-04-26 | 1 | -3/+3 |
| | |||||
* | Cosmetic fixes in AM validatations docs | Alexey Vakhov | 2011-11-27 | 1 | -1/+1 |
| | |||||
* | Use .add instead of << to add errors | Evgeniy Dolzhenko | 2011-10-11 | 1 | -1/+1 |
| | |||||
* | Implemented strict validation concept | Bogdan Gusiev | 2011-08-17 | 1 | -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 method | Ben Marini | 2011-07-24 | 1 | -2/+2 |
| | |||||
* | Configuration options are symbols | Paco Guzman | 2011-03-06 | 1 | -2/+2 |
| | |||||
* | Optionally pass in the attribute being validated to an instance method validator | Carl Lerche | 2011-02-05 | 1 | -1/+7 |
| | |||||
* | Be able to pass a validator method to #validates | Carl Lerche | 2011-02-05 | 1 | -0/+6 |
| | |||||
* | Refactor previous commit a bit [#4057 state:resolved] | José Valim | 2010-06-21 | 1 | -3/+0 |
| | |||||
* | Add titles to the rest of the files in active_model/validations/* | Rizwan Reza | 2010-06-15 | 1 | -0/+2 |
| | |||||
* | minor changes to instance level validations implementation based on feedback ↵ | Josh Kalderimis | 2010-05-13 | 1 | -25/+12 |
| | | | | from José Valim | ||||
* | validation macros can now be used within an instance | Josh Kalderimis | 2010-05-13 | 1 | -0/+66 |
| | |||||
* | Add validators reflection so you can do 'Person.validators' and ↵ | Prem Sichanugrist | 2010-02-21 | 1 | -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 ↵ | jamie | 2010-01-07 | 1 | -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é Valim | 2009-12-23 | 1 | -2/+2 |
| | |||||
* | Move validations in ActiveModel to validators, however all validatity checks ↵ | José Valim | 2009-12-23 | 1 | -4/+1 |
| | | | | are still in the class method. | ||||
* | Validator is simply sent to validate method. However, the API needs to ↵ | José Valim | 2009-12-22 | 1 | -5/+3 |
| | | | | change, so validate accepts a record. | ||||
* | Changed ActiveRecord to use new callbacks and speed up observers by only ↵ | José Valim | 2009-09-08 | 1 | -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 Dean | 2009-08-09 | 1 | -0/+64 |
[#2630 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> |