Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Oct 26, 2012
Commits on Oct 21, 2012
  1. minor edits in AM documentation [ci skip]

    Francesco Rodriguez authored
Commits on Jul 10, 2012
  1. @bogdan
Commits on Jul 5, 2012
Commits on Jun 27, 2012
  1. @carlosantoniodasilva

    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. add :nodoc: to internal implementations [ci skip]

    Francesco Rodriguez authored
Commits on May 16, 2012
  1. fixing removed empty lines and examples

    Francesco Rodriguez authored
  2. better format and fixes to validators docs

    Francesco Rodriguez authored
Commits on Aug 17, 2011
  1. @bogdan

    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. @smartinez87
Commits on Feb 21, 2011
  1. @fxn

    copy-edits 8d96b89

    fxn authored
Commits on Feb 19, 2011
Commits on Sep 18, 2010
  1. @neerajdotname @josevalim

    remove irrelevant comments

    neerajdotname authored josevalim committed
    Signed-off-by: José Valim <jose.valim@gmail.com>
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 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 Jun 15, 2010
  1. @rizwanreza
Commits on May 15, 2010
  1. @josevalim

    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. @jeroenvandijk @jeremy

    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. @joshk

    validation macros can now be used within an instance

    joshk authored Carl Lerche committed
Commits on Apr 28, 2010
  1. @spastorino @josevalim

    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. @thelucid @josevalim

    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. @josevalim
Commits on Dec 22, 2009
  1. @josevalim

    Move validations in ActiveModel to validators, however all validatity…

    josevalim authored
    … checks are still in the class method.
Commits on Jun 9, 2009
  1. @josh
Commits on Mar 21, 2009
  1. @lifo
Commits on Mar 19, 2009
  1. @lifo
Commits on May 2, 2008
  1. @fxn @lifo

    Improve documentation coverage and markup

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

    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.