Skip to content
This repository

Mar 20, 2013

  1. Ian Young

    Update other counter caches on destroy

    authored September 17, 2012

Mar 12, 2013

  1. Neeraj Singh

    dependent: :destroy should call destroy_all

    Commit #9668 shows warning
    when `delete_all` is invoked with `:dependent` option
    `:destroy`.
    
    Unfortunately invoking `Post.destroy_all` invokes
    `post.comments.delete_all` as part of `has_many` callbacks.
    
    This commit ensures that instead `post.comments.destroy_all` is
    invoked and in the process no warning is generated.
    
    See issue #9567 for details .

Nov 04, 2012

  1. Yves Senn

    :counter_cache option for to support custom named counter caches. Clo…

    …ses #7993
    authored November 04, 2012

Aug 10, 2012

  1. Jon Leighton

    move dependency logic out of generated methods

    authored August 10, 2012

Aug 01, 2012

  1. Jon Leighton

    s/scoped/scope/

    authored August 01, 2012
  2. Jon Leighton

    Revert "Remove :finder_sql, :counter_sql, :insert_sql, :delete_sql."

    This reverts commit 3803fcc.
    
    Conflicts:
    	activerecord/CHANGELOG.md
    
    It will be deprecated only in 4.0, and removed properly in 4.1.
    authored August 01, 2012

Jul 20, 2012

  1. Jon Leighton

    Remove :finder_sql, :counter_sql, :insert_sql, :delete_sql.

    authored July 20, 2012

Jul 13, 2012

  1. Jon Leighton

    Represent association scope options as AR::Relations insternally.

May 18, 2012

  1. Jon Leighton

    Perf: Don't load the association for #delete_all.

    Bug #6289

Dec 14, 2011

  1. Jon Leighton

    Fix #3672 again (dependent: delete_all perf)

    authored December 14, 2011

Nov 25, 2011

  1. Brian Samson

    load has_many associations keyed off a custom primary key if that key…

    … is present but the record is unsaved
    authored November 24, 2011

Nov 19, 2011

  1. Jon Leighton

    Perf fix

    If we're deleting all records in an association, don't add a IN(..)
    clause to the query.
    
    Fixes #3672.
    authored November 19, 2011

May 31, 2011

  1. Jon Leighton

    Only save the record once when calling create! on a collection associ…

    …ation. Fixes #1360.

May 23, 2011

  1. Sebastian Martinez

    Remove extra white spaces on ActiveRecord docs.

Mar 10, 2011

  1. Jon Leighton

    Move the code which builds a scope for through associations into a ge…

    …neric AssociationScope class which is capable of building a scope for any association.
    authored March 10, 2011

Feb 21, 2011

  1. Jon Leighton

    Use proper objects to do the work to build the associations (adding m…

    …ethods, callbacks etc) rather than calling a whole bunch of methods with rather long names.
    authored February 21, 2011 tenderlove committed February 21, 2011
  2. Jon Leighton

    Delegate Association#options to the reflection, and replace 'reflecti…

    …on.options' with 'options'. Also add through_options and source_options methods for through associations.
    authored February 20, 2011 tenderlove committed February 21, 2011
  3. Jon Leighton

    Associations - where possible, call attributes methods rather than di…

    …rectly accessing the instance variables
    authored February 20, 2011 tenderlove committed February 21, 2011

Feb 18, 2011

  1. Jon Leighton

    Split AssociationProxy into an Association class (and subclasses) whi…

    …ch manages the association, and a CollectionProxy class which is *only* a proxy. Singular associations no longer have a proxy. See CHANGELOG for more.
    authored February 17, 2011

Feb 14, 2011

  1. Jon Leighton

    Get rid of AssociationCollection#save_record

    authored February 14, 2011

Feb 07, 2011

  1. Jon Leighton

    Refactor the implementations of AssociatioCollection#delete and #dest…

    …roy to be more consistent with each other, and to stop passing blocks around, thus making the execution easier to follow.
    authored February 06, 2011
  2. Jon Leighton

    Correctly update counter caches on deletion for has_many :through [#2824

    state:resolved]. Also fixed a bunch of other counter cache bugs in the process, as once I fixed this one others started appearing like nobody's business.
    authored February 05, 2011
  3. Jon Leighton

    Make record.association.destroy(*records) on habtm and hm:t only dele…

    …te records in the join table. This is to make the destroy method more consistent across the different types of associations. For more details see the CHANGELOG entry.
    authored January 30, 2011

Jan 30, 2011

  1. Jon Leighton

    Rename AssociationProxy#loaded to loaded! as it mutates the association

    authored January 24, 2011
  2. Jon Leighton

    Let's be less blasé about method visibility on association proxies

    authored January 24, 2011

Jan 07, 2011

  1. Jon Leighton

    Construct an actual ActiveRecord::Relation object for the association…

    … scope, rather than a hash which is passed to apply_finder_options. This allows more flexibility in how the scope is created, for example because scope.where(a, b) and scope.where(a).where(b) mean different things.
    authored January 06, 2011 tenderlove committed January 07, 2011

Jan 04, 2011

  1. Jon Leighton

    Create the association scope directly rather than going through with_…

    …scope
    authored January 03, 2011 tenderlove committed January 03, 2011
  2. Jon Leighton

    Use the association directly in other places too

    authored January 02, 2011 tenderlove committed January 03, 2011
  3. Jon Leighton

    Let AssociationCollection#find use #scoped to do its finding. Note th…

    …at I am removing test_polymorphic_has_many_going_through_join_model_with_disabled_include, since this specifies different behaviour for an association than for a regular scope. It seems reasonable to expect scopes and association proxies to behave in roughly the same way rather than having subtle differences.
    authored January 02, 2011 tenderlove committed January 03, 2011

Dec 31, 2010

  1. Jon Leighton

    Rename AssociationReflection#primary_key_name to foreign_key, since t…

    …he options key which it relates to is :foreign_key
    authored December 31, 2010
  2. Jon Leighton

    And owner_quoted_id can go too

    authored December 30, 2010

Dec 26, 2010

  1. Jon Leighton

    Refactor we_can_set_the_inverse_on_this? to use a less bizarre name a…

    …mongst other things
    authored December 26, 2010 tenderlove committed December 26, 2010
  2. Jon Leighton

    Associations: DRY up the code which is generating conditions, and mak…

    …e it all use arel rather than SQL strings
    authored December 24, 2010
  3. Jon Leighton

    Remove target_obsolete? which is not called from anywhere

    authored December 23, 2010

Dec 20, 2010

  1. Jon Leighton

    Avoid Symbol#to_proc for performance reasons in Ruby 1.8

    authored December 20, 2010 tenderlove committed December 20, 2010
Something went wrong with that request. Please try again.