Skip to content
This repository

Apr 28, 2011

  1. Aditya Sanghi

    :if should not fire on validations when not in context with :on

    authored

Mar 07, 2011

  1. Vijay Dev

    formatting changes

    authored

Feb 21, 2011

  1. Xavier Noria

    copy-edits 8d96b89

    authored

Feb 19, 2011

  1. Clarification of ActiveRecord ActiveModel validation documentation

    authored

Feb 07, 2011

  1. Santiago Pastorino

    Use map + flatten here

    authored

Feb 06, 2011

  1. Carl Lerche

    Find all validators for multiple attributes

    authored

Jan 31, 2011

  1. John Firebaugh

    Use run_callbacks; the generated _run_<name>_callbacks method is not …

    …a public interface.
    
    Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
    authored spastorino committed

Dec 19, 2010

  1. Santiago Pastorino

    Tests and docs which explain the use of validate with a block and wit…

    …hout arguments
    authored

Oct 01, 2010

  1. Arkadiusz Holko

    Fix syntax error in ActiveModel::Validations .validate example

    authored

Sep 12, 2010

  1. Mikel Lindsaar

    Fixing documentation to reflect deprecated add_to_base

    authored

Aug 14, 2010

  1. Santiago Pastorino

    Deletes trailing whitespaces (over text files only find * -type f -ex…

    …ec sed 's/[ \t]*$//' -i {} \;)
    authored

Aug 12, 2010

  1. Greg Campbell

    Add missing ActiveModel::Validations require

    [#5311 state: resolved]
    
    ActiveModel::Validations uses Hash#except, but does not require it from
    ActiveSupport.  (This wasn't showing up in the tests, because it was
    required in the helper, and was also required in
    ActiveModel::Serialization).
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
    authored josevalim committed

Aug 03, 2010

  1. José Valim

    Freeze options so we raise an error when people modify it in place.

    authored

Jul 30, 2010

  1. Xavier Noria

    edit pass to apply API guideline wrt the use of "# =>" in example code

    authored

Jun 20, 2010

  1. Xavier Noria

    Merge remote branch 'rails/master'

    Conflicts:
    	actionpack/lib/abstract_controller/base.rb
    authored

Jun 19, 2010

  1. José Valim

    ActiveModel::Validations::Callbacks should not be required by default.

    authored
  2. Neeraj Singh

    moving before_validation and after_validation functionality from Acti…

    …veRecord to ActiveModel
    
    [#4653 state:resolved]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
    authored josevalim committed

Jun 15, 2010

  1. Evgeniy Dolzhenko

    Fix a bunch of minor spelling mistakes

    authored

Jun 14, 2010

  1. Rizwan Reza

    Revised the rest of the files from ActiveModel.

    authored

Jun 11, 2010

  1. Evgeniy Dolzhenko

    Fix a bunch of minor spelling mistakes

    authored

Jun 10, 2010

  1. José Valim

    class_attribute is not a direct replacement of class_inheritable_*.

    If you are setting a hash or an array in class_attribute or you need
    to freeze it, to ensure people won't modify it in place or you need
    to dup it on inheritance.
    authored
  2. Neeraj Singh

    Validators should at model level and not at AR:Base level [Closes #4804]

    [#4804 state:resolved]
    
    Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
    authored dhh committed

May 13, 2010

  1. Josh Kalderimis

    minor changes to instance level validations implementation based on f…

    …eedback from José Valim
    authored Carl Lerche committed
  2. Josh Kalderimis

    validation macros can now be used within an instance

    authored Carl Lerche committed

May 08, 2010

  1. Josh Kalderimis

    updated AMo validations to use a context for valid? and invalid?, rem…

    …oving the dependency on AR
    authored Carl Lerche committed

Apr 28, 2010

  1. Santiago Pastorino

    Makes validates_acceptance_of to not override database fields [#4460

    …state:committed]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
    authored josevalim committed

Mar 27, 2010

  1. Jeremy Kemper

    Use Array.wrap uniformly

    authored

Mar 26, 2010

  1. José Valim

    Remove reference to unexistent methods and fix typo.

    authored

Feb 25, 2010

  1. Jeremy Kemper

    Accept array of attributes as arg also, like 2.3

    authored

Feb 21, 2010

  1. Prem Sichanugrist

    Add validators reflection so you can do 'Person.validators' and 'Pers…

    …on.validators_on(:name)'.
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
    authored josevalim committed

Jan 31, 2010

  1. Mikel Lindsaar

    Full update on ActiveModel documentation

    authored

Jan 07, 2010

  1. José Valim

    Allow :if, :unless, :on, :allow_nil and :allow_blank as shared option…

    …s in validates.
    authored
  2. 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>
    authored josevalim committed

Dec 28, 2009

  1. Jeremy Kemper

    Merge commit 'josevalim/validations'

    authored

Dec 23, 2009

  1. José Valim

    validates_each uses a BlockValidator.

    authored
Something went wrong with that request. Please try again.