Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |
| | ||||||
* | Simplify AMo validation attribute reader | Joshua Peek | 2009-06-17 | 1 | -5/+1 | |
| | ||||||
* | Properly require ActiveModel validation dependencies | Joshua Peek | 2009-06-08 | 1 | -4/+6 | |
| | ||||||
* | Use AS::Concern in ActiveModel | Joshua Peek | 2009-05-30 | 1 | -4/+5 | |
| | ||||||
* | Deprecate Model#validate/validate_on_create/validate_on_update. Use ↵ | Pratik Naik | 2009-03-21 | 1 | -9/+0 | |
| | | | | Model.validate :method and likewise | |||||
* | Get rid of active_model/core and active_model/callbacks | Pratik Naik | 2009-03-21 | 1 | -2/+0 | |
| | ||||||
* | Remove DEFAULT_VALIDATION_OPTIONS from validations | Pratik Naik | 2009-03-21 | 1 | -2/+0 | |
| | ||||||
* | Move validate_on_create and validate_on_update from ActiveModel to ActiveRecord | Pratik Naik | 2009-03-21 | 1 | -6/+2 | |
| | ||||||
* | Add I18n translations to ActiveModel and move more AR specific parts to ↵ | Pratik Naik | 2009-03-20 | 1 | -37/+14 | |
| | | | | ActiveRecord::Validations | |||||
* | Move all the Active Record validations to Active Model | Pratik Naik | 2009-03-19 | 1 | -12/+29 | |
| | ||||||
* | Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵ | Jeremy Kemper | 2008-08-31 | 1 | -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 classes | rick | 2008-06-28 | 1 | -1/+1 | |
| | ||||||
* | tweak activemodel load order a bit | rick | 2008-06-27 | 1 | -0/+2 | |
| | ||||||
* | Improve documentation coverage and markup | Xavier Noria | 2008-05-02 | 1 | -10/+10 | |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Use define_callbacks helper for ActiveRecord validations. | Joshua Peek | 2008-04-20 | 1 | -17/+1 | |
| | ||||||
* | Tidy up ActiveSupport::Callbacks::CallbackChain instance API. | Joshua Peek | 2008-04-17 | 1 | -2/+1 | |
| | ||||||
* | Move it around a bit | David Heinemeier Hansson | 2008-04-01 | 1 | -14/+64 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Splitting them up first | David Heinemeier Hansson | 2008-04-01 | 1 | -585/+13 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9173 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Deprecate some more legacy | David Heinemeier Hansson | 2008-03-31 | 1 | -45/+19 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9172 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Something more to work with | David Heinemeier Hansson | 2008-03-31 | 1 | -1/+686 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9171 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | initial experimental commit of active_model | Rick Olson | 2007-11-09 | 1 | -0/+4 | |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8118 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |