Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Nov 25, 2012
  1. @senny
Commits on Oct 22, 2012
  1. @AvnerCohen
Commits on Oct 21, 2012
  1. @vijaydev

    Merge branch 'master' of

    vijaydev authored
  2. minor edits in AM documentation [ci skip]

    Francesco Rodriguez authored
Commits on Oct 18, 2012
  1. @senny
  2. @senny
Commits on Oct 3, 2012
  1. @rafaelfranca

    Use the `flat_map` method.

    rafaelfranca authored
    Thanks to @jeremy to teach me this one.
  2. @rafaelfranca

    Revert "Merge pull request #7826 from sikachu/master-validators-kind"

    rafaelfranca authored
    This reverts commit 4e9f53f, reversing
    changes made to 6b802cd.
    Revert "Don't use tap in this case."
    This reverts commit 454d820.
    Reason: Is not a good idea to add options to this method since we can do
    the same thing using method composition.
        Person.validators_on(:name).select { |v| v.kind == :presence }
    Also it avoids to change the method again to add more options.
  3. @rafaelfranca

    Don't use tap in this case.

    rafaelfranca authored
    The use of tap in this case is very confusing since we are mutating the
    return value inside the block
  4. @sikachu

    Make `.validators_on` accept `:kind` option

    sikachu authored
    This will filter out the validators on a particular attribute based on
    its kind.
Commits on Aug 4, 2012
  1. @vijaydev

    Merge branch 'master' of

    vijaydev authored
Commits on Aug 2, 2012
  1. @fxn
Commits on Jul 30, 2012
  1. update ActiveModel::Validations docs [ci skip]

    Francesco Rodriguez authored
Commits on Jun 27, 2012
  1. @carlosantoniodasilva

    Set hash value instead of merge a single key, and use flatten! if pos…

    carlosantoniodasilva authored
    There's no need to create two extra hashes with options.merge(another_hash),
    with the goal of setting only one value, so lets just set it.
    Also refactor validates_each to use _merge_attributes, like other
    validates_* helpers do.
Commits on Jun 22, 2012
  1. @vijaydev
  2. @vijaydev
Commits on Jun 15, 2012
  1. @jonleighton

    Simplify AR configuration code.

    jonleighton authored
    Get rid of ActiveModel::Configuration, make better use of
    ActiveSupport::Concern + class_attribute, etc.
  2. add example to ActiveModel::Validations#validators [ci skip]

    Francesco Rodriguez authored
Commits on May 15, 2012
  1. @carlosantoniodasilva
Commits on May 13, 2012
  1. clean the erros if an object that includes validations errors is dupe…

    Angelo Capilleri authored
    …d. Fixes #5953
Commits on Apr 26, 2012
  1. @oscardelben

    minor docs improvements

    oscardelben authored
  2. @oscardelben
  3. @oscardelben
Commits on Feb 7, 2012
  1. replacing ordered hash to ruby hash

    prasath authored
Commits on Jan 6, 2012
  1. @rafaelfranca
Commits on Dec 28, 2011
  1. @jonleighton

    Support configuration on ActiveRecord::Model.

    jonleighton authored
    The problem: We need to be able to specify configuration in a way that
    can be inherited to models that include ActiveRecord::Model. So it is
    no longer sufficient to put 'top level' config on ActiveRecord::Base,
    but we do want configuration specified on ActiveRecord::Base and
    descendants to continue to work.
    So we need something like class_attribute that can be defined on a
    module but that is inherited when ActiveRecord::Model is included.
    The solution: added ActiveModel::Configuration module which provides a
    config_attribute macro. It's a bit specific hence I am not putting this
    in Active Support or making it a 'public API' at present.
Commits on May 23, 2011
  1. @smartinez87
Commits on Apr 28, 2011
  1. @asanghi
Commits on Mar 7, 2011
  1. @vijaydev

    formatting changes

    vijaydev authored
Commits on Feb 21, 2011
  1. @fxn

    copy-edits 8d96b89

    fxn authored
Commits on Feb 19, 2011
Commits on Feb 7, 2011
  1. @spastorino

    Use map + flatten here

    spastorino authored
Commits on Feb 6, 2011
  1. @carllerche
Commits on Jan 31, 2011
  1. @jfirebaugh @spastorino

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

    jfirebaugh authored spastorino committed
    …a public interface.
    Signed-off-by: Santiago Pastorino <>
Commits on Dec 19, 2010
  1. @spastorino
Something went wrong with that request. Please try again.