mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
indentation fix
This commit is contained in:
@@ -357,15 +357,15 @@ Validations have been moved from Active Record into Active Model, providing an i
|
||||
|
||||
* There is now a <tt>validates :attribute, options_hash</tt> shortcut method that allows you to pass options for all the validates class methods, you can pass more than one option to a validate method.
|
||||
* The +validates+ method has the following options:
|
||||
* <tt>:acceptance => Boolean</tt>.
|
||||
* <tt>:confirmation => Boolean</tt>.
|
||||
* <tt>:exclusion => { :in => Enumerable }</tt>.
|
||||
* <tt>:inclusion => { :in => Enumerable }</tt>.
|
||||
* <tt>:format => { :with => Regexp, :on => :create }</tt>.
|
||||
* <tt>:length => { :maximum => Fixnum }</tt>.
|
||||
* <tt>:numericality => Boolean</tt>.
|
||||
* <tt>:presence => Boolean</tt>.
|
||||
* <tt>:uniqueness => Boolean</tt>.
|
||||
** <tt>:acceptance => Boolean</tt>.
|
||||
** <tt>:confirmation => Boolean</tt>.
|
||||
** <tt>:exclusion => { :in => Enumerable }</tt>.
|
||||
** <tt>:inclusion => { :in => Enumerable }</tt>.
|
||||
** <tt>:format => { :with => Regexp, :on => :create }</tt>.
|
||||
** <tt>:length => { :maximum => Fixnum }</tt>.
|
||||
** <tt>:numericality => Boolean</tt>.
|
||||
** <tt>:presence => Boolean</tt>.
|
||||
** <tt>:uniqueness => Boolean</tt>.
|
||||
|
||||
NOTE: All the Rails version 2.3 style validation methods are still supported in Rails 3.0, the new validates method is designed as an additional aid in your model validations, not a replacement for the existing API.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user