aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models/custom_reader.rb
Commit message (Collapse)AuthorAgeFilesLines
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-2/+2
| | | | 's/[ \t]*$//' -i {} \;)
* Add validates method as shortcut to setup validators for a given set of ↵jamie2010-01-071-2/+0
| | | | | | | | | | | | | | | 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>
* Allow validations to use values from custom readers [#2936 state:resolved]James Hill2009-08-051-0/+17
Signed-off-by: Joshua Peek <josh@joshpeek.com>