Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jun 27, 2012
  1. Carlos Antonio da Silva

    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. Vijay Dev
  2. Vijay Dev
Commits on Jun 15, 2012
  1. Jon Leighton

    Simplify AR configuration code.

    jonleighton authored
    Get rid of ActiveModel::Configuration, make better use of
    ActiveSupport::Concern + class_attribute, etc.
  2. Francesco Rodríguez
Commits on May 15, 2012
  1. Carlos Antonio da Silva
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. Oscar Del Ben

    minor docs improvements

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

    prasath authored
Commits on Jan 6, 2012
  1. Rafael Mendonça França
Commits on Dec 28, 2011
  1. Jon Leighton

    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. Sebastian Martinez
Commits on Apr 28, 2011
  1. Aditya Sanghi
Commits on Mar 7, 2011
  1. Vijay Dev

    formatting changes

    vijaydev authored
Commits on Feb 21, 2011
  1. Xavier Noria

    copy-edits 8d96b89

    fxn authored
Commits on Feb 19, 2011
Commits on Feb 7, 2011
  1. Santiago Pastorino

    Use map + flatten here

    spastorino authored
Commits on Feb 6, 2011
  1. Carl Lerche
Commits on Jan 31, 2011
  1. John Firebaugh Santiago Pastorino

    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. Santiago Pastorino
Commits on Oct 1, 2010
  1. Arkadiusz Holko
Commits on Sep 12, 2010
  1. Mikel Lindsaar
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 Aug 12, 2010
  1. Greg Campbell José Valim

    Add missing ActiveModel::Validations require

    gcampbell authored josevalim committed
    [#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
    Signed-off-by: José Valim <>
Commits on Aug 3, 2010
  1. José Valim
Commits on Jul 30, 2010
  1. Xavier Noria
Commits on Jun 20, 2010
  1. Xavier Noria

    Merge remote branch 'rails/master'

    fxn authored
Commits on Jun 19, 2010
  1. José Valim
  2. Neeraj Singh José Valim

    moving before_validation and after_validation functionality from Acti…

    neerajdotname authored josevalim committed
    …veRecord to ActiveModel
    [#4653 state:resolved]
    Signed-off-by: José Valim <>
Commits on Jun 15, 2010
  1. Ev Dolzhenko
Commits on Jun 14, 2010
  1. Rizwan Reza
Commits on Jun 11, 2010
  1. Ev Dolzhenko
Commits on Jun 10, 2010
  1. José Valim

    class_attribute is not a direct replacement of class_inheritable_*.

    josevalim authored
    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.
Something went wrong with that request. Please try again.