Skip to content
This repository

Apr 28, 2011

  1. Aditya Sanghi

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

    asanghi authored

Mar 07, 2011

  1. Vijay Dev

    formatting changes

    vijaydev authored

Feb 21, 2011

  1. Xavier Noria

    copy-edits 8d96b89

    fxn authored

Feb 19, 2011

  1. Clarification of ActiveRecord ActiveModel validation documentation

    Peer Allan authored

Feb 07, 2011

  1. Santiago Pastorino

    Use map + flatten here

    spastorino authored

Feb 06, 2011

  1. Carl Lerche

    Find all validators for multiple attributes

    carllerche 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>
    jfirebaugh 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
    spastorino authored

Oct 01, 2010

  1. Arkadiusz Holko

    Fix syntax error in ActiveModel::Validations .validate example

    fastred authored

Sep 12, 2010

  1. Mikel Lindsaar

    Fixing documentation to reflect deprecated add_to_base

    mikel authored

Aug 14, 2010

  1. Santiago Pastorino

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

    …ec sed 's/[ \t]*$//' -i {} \;)
    spastorino 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>
    gcampbell authored josevalim committed

Aug 03, 2010

  1. José Valim

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

    josevalim authored

Jul 30, 2010

  1. Xavier Noria

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

    fxn authored

Jun 20, 2010

  1. Xavier Noria

    Merge remote branch 'rails/master'

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

Jun 19, 2010

  1. José Valim

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

    josevalim 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>
    neerajdotname authored josevalim committed

Jun 15, 2010

  1. Ev Dolzhenko

    Fix a bunch of minor spelling mistakes

    dolzenko authored

Jun 14, 2010

  1. Rizwan Reza

    Revised the rest of the files from ActiveModel.

    rizwanreza authored

Jun 11, 2010

  1. Ev Dolzhenko

    Fix a bunch of minor spelling mistakes

    dolzenko 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.
    josevalim 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>
    neerajdotname authored dhh committed

May 13, 2010

  1. Josh Kalderimis

    minor changes to instance level validations implementation based on f…

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

    validation macros can now be used within an instance

    joshk 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
    joshk 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>
    spastorino authored josevalim committed

Mar 27, 2010

  1. Jeremy Kemper

    Use Array.wrap uniformly

    jeremy authored

Mar 26, 2010

  1. José Valim

    Remove reference to unexistent methods and fix typo.

    josevalim authored

Feb 25, 2010

  1. Jeremy Kemper

    Accept array of attributes as arg also, like 2.3

    jeremy 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>
    sikachu authored josevalim committed

Jan 31, 2010

  1. Mikel Lindsaar

    Full update on ActiveModel documentation

    mikel authored

Jan 07, 2010

  1. José Valim

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

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

Dec 28, 2009

  1. Jeremy Kemper

    Merge commit 'josevalim/validations'

    jeremy authored

Dec 23, 2009

  1. José Valim

    validates_each uses a BlockValidator.

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