Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Dec 4, 2011
  1. @exviva

    Do not validate associated records marked for destruction

    exviva authored
    The main reason for this change is to fix a bug where
    `validates_associated` would prevent `accepts_nested_attributes_for`
    with `allow_destroy: true` from destroying invalid associated records.
Commits on Aug 4, 2011
  1. @vijaydev @fxn

    make the warning clear about the effect of using validates_associated…

    vijaydev authored fxn committed
    … on both sides on an association.
Commits on May 23, 2011
  1. @smartinez87
Commits on Feb 21, 2011
  1. @fxn

    copy-edits 8d96b89

    fxn authored
Commits on Feb 19, 2011
Commits on Aug 14, 2010
  1. @spastorino

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

    spastorino authored
    …ec sed 's/[ \t]*$//' -i {} \;)
Commits on Aug 2, 2010
  1. @neerajdotname
Commits on Jun 21, 2010
  1. @jeroenvandijk @josevalim

    Make ActiveModel::Errors#add_on_blank and #add_on_empty accept an opt…

    jeroenvandijk authored josevalim committed
    …ions hash and make various Validators pass their (filtered) options.
    
    This makes it possible to pass additional options through Validators to message generation. E.g. plugin authors want to add validates_presence_of :foo, :format => "some format".
    
    Also, cleanup the :default vs :message options confusion in ActiveModel validation message generation.
    
    Also, deprecate ActiveModel::Errors#add_on_blank(attributes, custom_message) in favor of ActiveModel::Errors#add_on_blank(attributes, options).
    
    Also, refactoring of ActiveModel and ActiveRecord Validation tests. Test are a lot more DRY now. Better test coverage as well now.
    
    The first four points were reapplied from an older patch of Sven Fuchs which didn't apply cleanly anymore and was not complete yet.
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Jan 8, 2010
  1. @josevalim
Commits on Dec 23, 2009
  1. @josevalim

    No need to use ValidationsRepairHelper hack on ActiveModel anymore, M…

    josevalim authored
    …odel.reset_callbacks(:validate) is enough. However, tests in ActiveRecord are still coupled, so moved ValidationsRepairHelper back there.
  2. @josevalim
Commits on Mar 21, 2009
  1. @lifo
Commits on Mar 19, 2009
  1. @lifo
Something went wrong with that request. Please try again.