Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | handled respond_to? with private methods | SHIBATA Hiroshi | 2012-12-03 | 1 | -1/+1 |
| | |||||
* | active_model/validations requires necessary files to run | Yves Senn | 2012-10-18 | 1 | -0/+1 |
| | |||||
* | Fix the the backport of the object dup with the ruby 1.9.3p194. | Angelo capilleri | 2012-06-12 | 1 | -1/+2 |
| | | | | | | At the end of initialize_dup was added the call to super if it exists, so it also works with 1.8.7 where initialize_dup doesn't exist. This issu was introduced with the pull request #6324 | ||||
* | add backport for the pull request #6324 | Angelo Capilleri | 2012-05-15 | 1 | -1/+9 |
| | |||||
* | Fix indent from previous merge | Carlos Antonio da Silva | 2012-05-15 | 1 | -2/+2 |
| | |||||
* | clean the errors if an object that includes validations errors is duped,for ↵ | Angelo capilleri | 2012-05-15 | 1 | -0/+6 |
| | | | | | | 3-2-stable It Fixes #5953 in 3-2-stable, it's the same pull request of #6284 | ||||
* | Remove extra white spaces on ActiveModel docs. | Sebastian Martinez | 2011-05-23 | 1 | -1/+1 |
| | |||||
* | :if should not fire on validations when not in context with :on | Aditya Sanghi | 2011-04-29 | 1 | -1/+1 |
| | |||||
* | formatting changes | Vijay Dev | 2011-03-07 | 1 | -3/+3 |
| | |||||
* | copy-edits 8d96b89 | Xavier Noria | 2011-02-21 | 1 | -2/+2 |
| | |||||
* | Clarification of ActiveRecord ActiveModel validation documentation | Peer Allan | 2011-02-18 | 1 | -2/+2 |
| | |||||
* | Use map + flatten here | Santiago Pastorino | 2011-02-07 | 1 | -3/+3 |
| | |||||
* | Find all validators for multiple attributes | Carl Lerche | 2011-02-05 | 1 | -2/+4 |
| | |||||
* | Use run_callbacks; the generated _run_<name>_callbacks method is not a ↵ | John Firebaugh | 2011-01-31 | 1 | -1/+1 |
| | | | | | | public interface. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Tests and docs which explain the use of validate with a block and without ↵ | Santiago Pastorino | 2010-12-19 | 1 | -1/+11 |
| | | | | arguments | ||||
* | Fix syntax error in ActiveModel::Validations .validate example | fastred | 2010-10-01 | 1 | -1/+1 |
| | |||||
* | Fixing documentation to reflect deprecated add_to_base | Mikel Lindsaar | 2010-09-12 | 1 | -2/+2 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -16/+16 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Add missing ActiveModel::Validations require | Greg Campbell | 2010-08-12 | 1 | -0/+1 |
| | | | | | | | | | | | [#5311 state: resolved] ActiveModel::Validations uses Hash#except, but does not require it from ActiveSupport. (This wasn't showing up in the tests, because it was required in the helper, and was also required in ActiveModel::Serialization). Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Freeze options so we raise an error when people modify it in place. | José Valim | 2010-08-03 | 1 | -2/+4 |
| | |||||
* | edit pass to apply API guideline wrt the use of "# =>" in example code | Xavier Noria | 2010-07-30 | 1 | -11/+7 |
| | |||||
* | Merge remote branch 'rails/master' | Xavier Noria | 2010-06-20 | 1 | -2/+9 |
|\ | | | | | | | | | Conflicts: actionpack/lib/abstract_controller/base.rb | ||||
| * | ActiveModel::Validations::Callbacks should not be required by default. | José Valim | 2010-06-19 | 1 | -1/+18 |
| | | |||||
| * | moving before_validation and after_validation functionality from ↵ | Neeraj Singh | 2010-06-19 | 1 | -12/+2 |
| | | | | | | | | | | | | | | | | ActiveRecord to ActiveModel [#4653 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-15 | 1 | -2/+2 |
|\ \ | |/ |/| | |||||
| * | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-11 | 1 | -2/+2 |
| | | |||||
* | | Revised the rest of the files from ActiveModel. | Rizwan Reza | 2010-06-14 | 1 | -17/+23 |
|/ | |||||
* | class_attribute is not a direct replacement of class_inheritable_*. | José Valim | 2010-06-10 | 1 | -5/+11 |
| | | | | | | If you are setting a hash or an array in class_attribute or you need to freeze it, to ensure people won't modify it in place or you need to dup it on inheritance. | ||||
* | Validators should at model level and not at AR:Base level [Closes #4804] | Neeraj Singh | 2010-06-10 | 1 | -1/+1 |
| | | | | | | [#4804 state:resolved] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | ||||
* | minor changes to instance level validations implementation based on feedback ↵ | Josh Kalderimis | 2010-05-13 | 1 | -1/+2 |
| | | | | from José Valim | ||||
* | validation macros can now be used within an instance | Josh Kalderimis | 2010-05-13 | 1 | -6/+3 |
| | |||||
* | updated AMo validations to use a context for valid? and invalid?, removing ↵ | Josh Kalderimis | 2010-05-08 | 1 | -5/+12 |
| | | | | the dependency on AR | ||||
* | Makes validates_acceptance_of to not override database fields [#4460 ↵ | Santiago Pastorino | 2010-04-28 | 1 | -0/+3 |
| | | | | | | state:committed] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Use Array.wrap uniformly | Jeremy Kemper | 2010-03-27 | 1 | -1/+2 |
| | |||||
* | Remove reference to unexistent methods and fix typo. | José Valim | 2010-03-26 | 1 | -1/+0 |
| | |||||
* | Accept array of attributes as arg also, like 2.3 | Jeremy Kemper | 2010-02-25 | 1 | -1/+1 |
| | |||||
* | Add validators reflection so you can do 'Person.validators' and ↵ | Prem Sichanugrist | 2010-02-21 | 1 | -3/+18 |
| | | | | | | 'Person.validators_on(:name)'. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Full update on ActiveModel documentation | Mikel Lindsaar | 2010-02-01 | 1 | -1/+38 |
| | |||||
* | Allow :if, :unless, :on, :allow_nil and :allow_blank as shared options in ↵ | José Valim | 2010-01-07 | 1 | -3/+1 |
| | | | | validates. | ||||
* | Add validates method as shortcut to setup validators for a given set of ↵ | jamie | 2010-01-07 | 1 | -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 Kemper | 2009-12-28 | 1 | -33/+23 |
|\ | |||||
| * | validates_each uses a BlockValidator. | José Valim | 2009-12-23 | 1 | -33/+23 |
| | | |||||
* | | All AMo modules are safe to defer | Joshua Peek | 2009-12-22 | 1 | -0/+1 |
|/ | |||||
* | Move validator, human_name and human_attribute_name to ActiveModel, remove ↵ | José Valim | 2009-10-20 | 1 | -0/+1 |
| | | | | | | deprecated error messages and add i18n_scope and lookup_ancestors. Signed-off-by: Carl Lerche <carllerche@mac.com> | ||||
* | Callbacks, DeprecatedCallbacks = NewCallbacks, Callbacks | Joshua Peek | 2009-10-12 | 1 | -6/+4 |
| | |||||
* | Refactor new callbacks and AR implementation. | José Valim | 2009-09-08 | 1 | -2/+2 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Changed ActiveRecord to use new callbacks and speed up observers by only ↵ | José Valim | 2009-09-08 | 1 | -6/+10 |
| | | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Use send instead of instance_eval | Pratik Naik | 2009-08-06 | 1 | -1/+1 |
| | |||||
* | Allow validations to use values from custom readers [#2936 state:resolved] | James Hill | 2009-08-05 | 1 | -1/+23 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Add some missing dependencies | Yehuda Katz | 2009-07-15 | 1 | -0/+2 |
| |