Skip to content
This repository

Jul 02, 2005

  1. David Heinemeier Hansson

    Fixed validates_numericality_of to work with overrided getter-method …

    …when :allow_nil is on #1316 [raidel@onemail.at]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1603 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored July 02, 2005
  2. David Heinemeier Hansson

    Clarified intentions of validates_associated #870

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1602 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored July 02, 2005

Jul 01, 2005

  1. David Heinemeier Hansson

    Added support for ODBC connections to MS SQL Server so you can connec…

    …t from a non-Windows machine #1569 [Mark Imbriaco/DeLynn Berry] Added support for limit/offset with the MS SQL Server driver so that pagination will now work #1569 [DeLynn Berry]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1583 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored July 01, 2005

Jun 25, 2005

  1. David Heinemeier Hansson

    Fixed that validations didn't respecting custom setting for too_short…

    …, too_long messages #1437 [Marcel Molina]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1509 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored June 25, 2005

May 21, 2005

  1. David Heinemeier Hansson

    Added Errors#add_on_blank which works like Errors#add_on_empty, but u…

    …ses Object#blank? instead. CHANGED: validates_presence_of now uses Errors#add_on_blank, which will make " " fail the validation where it didnt before #1309. Added that "   " is now also blank? (using strip if available)
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored May 21, 2005
  2. David Heinemeier Hansson

    Added the :if option to all validations that can either use a block o…

    …r a method pointer to determine whether the validation should be run or not. #1324 [Duane Johnson/jhosteny]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1340 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored May 21, 2005

Apr 30, 2005

  1. David Heinemeier Hansson

    Fixed that validate_length_of lost :on option when :within was specif…

    …ied #1195 [jhosteny@mac.com]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1258 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored April 30, 2005

Apr 24, 2005

  1. David Heinemeier Hansson

    Added validates_exclusion_of as a negative of validates_inclusion_of

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored April 24, 2005

Apr 18, 2005

  1. David Heinemeier Hansson

    Fixed documentation and prepared for release of 0.12

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored April 18, 2005
  2. David Heinemeier Hansson

    Added Base.save! that attempts to save the record just like Base.save…

    … but will raise a InvalidRecord exception instead of returning false if the record is not valid [After much pestering from Dave Thomas]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored April 18, 2005

Apr 17, 2005

  1. David Heinemeier Hansson

    Added the option to specify the acceptance string in validates_accept…

    …ance_of #1106 [caleb@aei-tech.com]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1188 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored April 17, 2005

Mar 14, 2005

  1. David Heinemeier Hansson

    Added optionally allow for nil or empty strings with validates_numeri…

    …cality_of #801 [Sebastian Kanthak] Fixed problem with using slashes in validates_format_of regular expressions #801 [Sebastian Kanthak]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@910 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored March 14, 2005

Mar 06, 2005

  1. David Heinemeier Hansson

    Added validates_numericality_of #716 [skanthak/c.r.mcgrath]

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@842 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored March 06, 2005

Feb 22, 2005

  1. David Heinemeier Hansson

    Fixed that when using validation macros with a custom message, if you…

    … happened to use single quotes in the message string you would get a parsing error #657 [tonka]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@740 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored February 22, 2005

Feb 18, 2005

  1. David Heinemeier Hansson

    Added validates_each that validates each specified attribute against …

    …a block #610 [bitsweat]. Added :allow_nil as an explicit option for validates_length_of, so unless that's set to true having the attribute as nil will also return an error if a range is specified as :within #610 [bitsweat]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored February 18, 2005

Feb 17, 2005

  1. David Heinemeier Hansson

    Addded validation for validate all the associated objects before decl…

    …aring failure with validates_associated #618 [Tim Bates]. Added that validates_* now accept blocks to perform validations #618 [Tim Bates]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@650 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored February 17, 2005

Jan 15, 2005

  1. David Heinemeier Hansson

    Added validates_associated that enables validation of objects in an u…

    …nsaved association #398 [Tim Bates]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@418 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored January 15, 2005

Dec 31, 2004

  1. David Heinemeier Hansson

    Fixed quoting in validates_format_of that would allow some rules to p…

    …ass regardless of input #390 [Dmitry V. Sabanin]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@288 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 31, 2004

Dec 22, 2004

  1. David Heinemeier Hansson

    Added scope option to validation_uniqueness #349 [Kent Sibilev]

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@259 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 22, 2004
  2. David Heinemeier Hansson

    Added allow_nil options to validates_inclusion_of so that validation …

    …is only triggered if the attribute is not nil [what-a-day]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@258 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 22, 2004

Dec 21, 2004

  1. David Heinemeier Hansson

    Fixed validates_{confirmation,acceptance}_of to only happen when the …

    …virtual attributes are not nil #348 [dpiddy@gmail.com]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@241 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 21, 2004

Dec 19, 2004

  1. David Heinemeier Hansson

    Set a high default salary within the validation range

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@217 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 19, 2004
  2. David Heinemeier Hansson

    Added Developer#salary for the type tests

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 19, 2004
  3. David Heinemeier Hansson

    Added respondence to *_before_type_cast for all attributes to return …

    …their string-state before they were type casted by the column type. Added use of *_before_type_cast for all input and text fields.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 19, 2004

Dec 16, 2004

  1. David Heinemeier Hansson

    Added Base.validates_inclusion_of

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@192 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 16, 2004
  2. David Heinemeier Hansson

    Added Base.validates_inclusion_of that validates whether the value of…

    … the specified attribute is available in a particular enumerable object. [what-a-day]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@178 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 16, 2004
  3. David Heinemeier Hansson

    Added Base.validates_format_of that Validates whether the value of th…

    …e specified attribute is of the correct form by matching it against the regular expression provided. [Marcel]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 16, 2004

Dec 15, 2004

  1. David Heinemeier Hansson

    Added Base.validates_boundries_of that delegates to add_on_boundary_b…

    …reaking #312 [Tobias Luetke]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@166 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 15, 2004
  2. David Heinemeier Hansson

    Changed validate_* to validates_*_of, so validate_acceptance becomes …

    …validates_acceptance_of, and added :on as a configuration option instead of using _on_create/update
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 15, 2004

Dec 14, 2004

  1. David Heinemeier Hansson

    fixtures :models will now also attempt to include the model.rb file

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@153 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 14, 2004

Dec 10, 2004

  1. David Heinemeier Hansson

    Options for the new validation methods are now given as a hash

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@109 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 10, 2004
  2. David Heinemeier Hansson

    Added Base.validate_uniqueness thatv alidates whether the value of th…

    …e specified attributes are unique across the system. Useful for making sure that only one user can be named "davidhh".
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@108 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 10, 2004
  3. David Heinemeier Hansson

    Added Base.validate_presence as an alternative to implementing valida…

    …te and doing errors.add_on_empty yourself. Added _on_create and _on_update versions for all the new validations
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@107 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 10, 2004

Dec 09, 2004

  1. David Heinemeier Hansson

    Fixed Base.errors to be indifferent as to whether strings or symbols …

    …are used.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@98 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 09, 2004
  2. David Heinemeier Hansson

    Added Base.validate_confirmation that encapsulates the pattern of wan…

    …ting to validate the acceptance of a terms of service check box (or similar agreement)
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@97 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 09, 2004
Something went wrong with that request. Please try again.