José Valim
|
fa14d6d51e
|
Compile length validator options still at the class level, so whenever the validator is called, it just needs to check for :maximum, :minimum and :is values.
|
2010-01-08 21:36:04 +01:00 |
|
jamie
|
0a79eb7889
|
Add validates method as shortcut to setup validators for a given set of 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>
|
2010-01-07 19:23:59 +01:00 |
|
José Valim
|
977a5c43b1
|
Added check_validity! to EachValidator and refactor existing ones.
|
2009-12-23 01:08:27 +01:00 |
|
José Valim
|
f1085f4128
|
Move validations in ActiveModel to validators, however all validatity checks are still in the class method.
|
2009-12-23 00:36:51 +01:00 |
|
Joshua Peek
|
28f36279cd
|
Properly require ActiveModel validation dependencies
|
2009-06-08 20:32:08 -05:00 |
|
Pratik Naik
|
22ad30ed60
|
Move validate_on_create and validate_on_update from ActiveModel to ActiveRecord
|
2009-03-21 01:11:38 +00:00 |
|
Pratik Naik
|
8828b2ca67
|
Move all the Active Record validations to Active Model
|
2009-03-19 23:28:59 +00:00 |
|
Pratik Naik
|
18eb80ccc7
|
Merge docrails
|
2009-03-16 11:28:36 +00:00 |
|
Clemens Kofler
|
1646e8c364
|
More symbols for send and respond_to?.
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2008-09-03 00:55:22 +02:00 |
|
Xavier Noria
|
64092de257
|
Improve documentation coverage and markup
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-05-02 14:45:23 +01:00 |
|
Pratik Naik
|
097c0d6166
|
Fix more typos and changelog
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-05 11:18:05 +00:00 |
|
David Heinemeier Hansson
|
87535bd373
|
Splitting them up first
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9173 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-01 00:05:48 +00:00 |
|