Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Oct 26, 2012
  1. Francesco Rodríguez
Commits on Oct 21, 2012
  1. Francesco Rodríguez
Commits on Jul 10, 2012
  1. Bogdan Gusiev
Commits on Jul 5, 2012
  1. Francesco Rodríguez
Commits on Jun 27, 2012
  1. Carlos Antonio da Silva

    Use default + merge! instead of reverse_merge

    carlosantoniodasilva authored
    Since we're not directly requiring the reverse_merge extension, we can
    avoid another hash creation by using default_hash.merge! instead.
Commits on Jun 25, 2012
  1. Francesco Rodríguez
Commits on May 16, 2012
  1. Francesco Rodríguez
  2. Francesco Rodríguez
Commits on Aug 17, 2011
  1. Bogdan Gusiev

    Implemented strict validation concept

    bogdan authored
    In order to deliver debug information to dev team
    instead of display error message to end user
    Implemented strict validation concept
    that suppose to define validation that always raise exception when fails
Commits on May 23, 2011
  1. Sebastian Martinez
Commits on Feb 21, 2011
  1. Xavier Noria

    copy-edits 8d96b89

    fxn authored
Commits on Feb 19, 2011
Commits on Sep 18, 2010
  1. Neeraj Singh José Valim

    remove irrelevant comments

    neerajdotname authored josevalim committed
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Aug 14, 2010
  1. Santiago Pastorino

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

    spastorino authored
    …ec sed 's/[ \t]*$//' -i {} \;)
Commits on Jun 21, 2010
  1. Jeroen van Dijk José Valim

    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 Jun 15, 2010
  1. Rizwan Reza
Commits on May 15, 2010
  1. José Valim

    Revert "Make ActiveModel::Errors#add_on_blank and #add_on_empty accep…

    josevalim authored
    …t an options hash and make various Validators pass their (filtered) options."
    
    Having a huge array to whitelist options is not the proper way to handle this case. This means that the ActiveModel::Errors object should know about the options given in *all* validators and break the extensibility added by the validators itself. If the intent is to whitelist options before sending them to I18n, each validator should clean its respective options instead of throwing the responsibility to the Errors object.
    
    This reverts commit bc1c8d5.
  2. Jeroen van Dijk Jeremy Kemper

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

    jeroenvandijk authored jeremy 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).
    
    Original patch by Sven Fuchs, some minor changes and has been changed to be applicable to master again
    
    [#4057 state:committed]
    
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Commits on May 13, 2010
  1. Josh Kalderimis

    validation macros can now be used within an instance

    joshk authored Carl Lerche committed
Commits on Apr 28, 2010
  1. Santiago Pastorino José Valim

    Makes validates_acceptance_of to not override database fields [#4460

    spastorino authored josevalim committed
    …state:committed]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Jan 7, 2010
  1. Jamie Hill José Valim

    Add validates method as shortcut to setup validators for a given set …

    thelucid authored josevalim committed
    …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>
Commits on Dec 23, 2009
  1. José Valim
Commits on Dec 22, 2009
  1. José Valim

    Move validations in ActiveModel to validators, however all validatity…

    josevalim authored
    … checks are still in the class method.
Commits on Jun 9, 2009
  1. Joshua Peek
Commits on Mar 21, 2009
  1. Pratik
Commits on Mar 19, 2009
  1. Pratik
Commits on May 2, 2008
  1. Xavier Noria Pratik

    Improve documentation coverage and markup

    fxn authored lifo committed
    Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Commits on Apr 1, 2008
  1. David Heinemeier Hansson

    Splitting them up first

    dhh authored
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9173 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Something went wrong with that request. Please try again.