Skip to content
Commits on Oct 18, 2012
  1. @spastorino @rafaelfranca

    Merge pull request #7371 from csmuc/fix_dup_validation_errors

    spastorino committed with rafaelfranca Oct 16, 2012
    Dup'ed ActiveRecord objects may not share the errors object
    Conflicts:
    	activerecord/CHANGELOG.md
    	activerecord/test/cases/dup_test.rb
Commits on Oct 26, 2011
  1. @lifo
Commits on Sep 12, 2011
  1. @jonleighton

    Raise error when using write_attribute with a non-existent attribute.

    jonleighton committed Sep 10, 2011
    Previously we would just silently write the attribute. This can lead to
    subtle bugs (for example, see the change in AutosaveAssociation where a
    through association would wrongly gain an attribute.
    
    Also, ensuring that we never gain any new attributes after
    initialization will allow me to reduce our dependence on method_missing.
Commits on Aug 29, 2011
  1. @jonleighton

    Fix test failures on 1.8.7, since Object#initialize_dup is not define…

    jonleighton committed Aug 29, 2011
    …d there (and this call to super is no essential, so easiest to simply remove)
  2. @jonleighton
Commits on Feb 5, 2011
  1. Updates to ActiveRecord::Timestamp documentation.

    Brian Morearty committed Feb 5, 2011
    Change ActiveRecord::Base.xyz to config.active_record.xyz in docs.
    
    Remove <tt> from code samples.
    
    Update skip_time_zone_conversion_for_attributes code sample: put the call in the model class.
    
    Clarify that skip_time_zone_conversion_for_attributes skips converion when reading.
Commits on Feb 2, 2011
  1. @franckverrot @spastorino

    Implement and test private method all_timestamp_attributes_in_model

    franckverrot committed with spastorino Jan 25, 2011
    Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
  2. @franckverrot @spastorino

    Added timestamp_attributes_for_create_in_model

    franckverrot committed with spastorino Jan 25, 2011
    Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Commits on Dec 30, 2010
  1. @lifo
Commits on Nov 20, 2010
  1. @joshk @josevalim

    class inheritable attributes is used no more! all internal use of cla…

    joshk committed with josevalim Nov 19, 2010
    …ss inheritable has been changed to class_attribute. class inheritable attributes has been deprecated.
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Nov 2, 2010
  1. @lifo
Commits on Aug 24, 2010
  1. @josevalim
Commits on Aug 12, 2010
  1. @josevalim

    Make update_attribute behave as in Rails 2.3 and document the behavio…

    josevalim committed Aug 12, 2010
    …r intrinsic to its implementation.
Commits on Aug 3, 2010
  1. @fxn
Commits on Aug 2, 2010
  1. ensuring that description does not exceed 100 columns

    Neeraj Singh committed Aug 2, 2010
  2. @josevalim
Commits on Jul 29, 2010
Commits on Jul 21, 2010
  1. @josevalim

    Timestamp columns of HABTM join table should record timestamps

    Neeraj Singh committed with josevalim Jul 20, 2010
    [#5161 state:resolved]
Commits on Jul 13, 2010
  1. @josevalim
  2. @josevalim

    with this fix touch method - does not call validations - doest not ca…

    Neeraj Singh committed with josevalim Jul 9, 2010
    …ll callbacks - updates updated_at/on along with attribute if attribute is provided - marks udpated_at/on and attribute as NOT changed
    
    [#2520 state:resolved]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Jul 8, 2010
  1. @josevalim
  2. @josevalim

    This patch changes update_attribute implementatino so:

    Neeraj Singh committed with josevalim Jun 30, 2010
    - it will only save the attribute it has been asked to save and not all dirty attributes
    
    - it does not invoke callbacks
    
    - it does change updated_at/on
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
  3. @josevalim

    consolidating updated_at and updated_on

    Neeraj Singh committed with josevalim Jul 2, 2010
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Jun 16, 2010
  1. @rizwanreza
Commits on May 8, 2010
  1. @wycats
Commits on May 28, 2009
  1. @josh

    Break up DependencyModule's dual function of providing a "depend_on" …

    josh committed May 28, 2009
    …DSL and "included" block DSL into separate modules. But, unify both approaches under AS::Concern.
Commits on May 12, 2009
  1. @brynary
Commits on Apr 16, 2009
  1. @dhh

    Added :touch option to belongs_to associations that will touch the pa…

    dhh committed Apr 16, 2009
    …rent record when the current record is saved or destroyed [DHH]
  2. @dhh

    Added ActiveRecord::Base#touch to update the updated_at/on attributes…

    dhh committed Apr 16, 2009
    … with the current time [DHH]
Commits on Dec 22, 2008
  1. @lifo

    Ensure of Model#create support custom updated_at and updated_on attri…

    Luis Hurtado committed with lifo Dec 22, 2008
    …butes [#1612 state:resolved]
    
    Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Commits on Mar 31, 2008
  1. @jeremy

    Partial updates play nice with updated_at/on timestamps

    jeremy committed Mar 31, 2008
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  2. @jeremy

    Partial updates include only unsaved attributes. Off by default; set …

    jeremy committed Mar 31, 2008
    …YourClass.partial_updates = true to enable.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Mar 26, 2008
  1. @lifo

    Improve documentation.

    lifo committed Mar 26, 2008
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Nov 26, 2007
  1. @jeremy

    Make the record_timestamps class-inheritable so it can be set per mod…

    jeremy committed Nov 26, 2007
    …el. References #10004.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8217 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Nov 8, 2007
  1. Smattering of grammatical fixes to documentation. Closes #10083 [BobS…

    Marcel Molina committed Nov 8, 2007
    …ilva]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8113 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Something went wrong with that request. Please try again.