Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix typo by renaming :genre to :gender. | José Valim | 2010-01-09 | 1 | -1/+1 |
| | |||||
* | Allow validates to map some types to specific options. So now you can do: | José Valim | 2010-01-08 | 1 | -1/+1 |
| | | | | | | validates :email, :presence => true, :format => /@/ validates :genre, :inclusion => %w(m f) validates :password, :length => 6..20 | ||||
* | Allow :if, :unless, :on, :allow_nil and :allow_blank as shared options in ↵ | José Valim | 2010-01-07 | 1 | -0/+4 |
| | | | | validates. | ||||
* | Add validates method as shortcut to setup validators for a given set of ↵ | jamie | 2010-01-07 | 2 | -2/+11 |
| | | | | | | | | | | | | | | | 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> | ||||
* | No need to use ValidationsRepairHelper hack on ActiveModel anymore, ↵ | José Valim | 2009-12-23 | 1 | -1/+1 |
| | | | | Model.reset_callbacks(:validate) is enough. However, tests in ActiveRecord are still coupled, so moved ValidationsRepairHelper back there. | ||||
* | Small clean up in Naming and TTranslation tests. | José Valim | 2009-12-23 | 2 | -0/+8 |
| | |||||
* | Changed ActiveRecord to use new callbacks and speed up observers by only ↵ | José Valim | 2009-09-08 | 1 | -3/+3 |
| | | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Allow validations to use values from custom readers [#2936 state:resolved] | James Hill | 2009-08-05 | 1 | -0/+17 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Dasherize XML root by default to avoid invalid tags ↵ | Joshua Peek | 2009-07-22 | 1 | -0/+4 |
| | | | | "<admin/posts>...</admin/posts>" [#2875 state:resolved] | ||||
* | Initial extraction of AMo xml serializer | Joshua Peek | 2009-07-03 | 1 | -0/+3 |
| | |||||
* | Deprecate Model#validate/validate_on_create/validate_on_update. Use ↵ | Pratik Naik | 2009-03-21 | 1 | -3/+7 |
| | | | | Model.validate :method and likewise | ||||
* | Add ActiveModel::Validations tests for regular ruby classes | Pratik Naik | 2009-03-20 | 2 | -1/+3 |
| | |||||
* | Add I18n translations to ActiveModel and move more AR specific parts to ↵ | Pratik Naik | 2009-03-20 | 1 | -0/+5 |
| | | | | ActiveRecord::Validations | ||||
* | Move relevant validation tests from Active Record to Active Model | Pratik Naik | 2009-03-20 | 3 | -0/+43 |