Skip to content
This repository

Nov 04, 2012

  1. Yves Senn

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

    …ses #7993
    senny authored

Aug 10, 2012

  1. Jon Leighton

    move dependency logic out of generated methods

    jonleighton authored

Aug 01, 2012

  1. Jon Leighton

    s/scoped/scope/

    jonleighton authored
  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.
    jonleighton authored

Jul 20, 2012

  1. Jon Leighton

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

    jonleighton authored

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)

    jonleighton authored

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
    samsonasu authored

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.
    jonleighton authored

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.
    jonleighton authored

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.
    jonleighton authored tenderlove committed
  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.
    jonleighton authored tenderlove committed
  3. Jon Leighton

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

    …rectly accessing the instance variables
    jonleighton authored tenderlove committed

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.
    jonleighton authored

Feb 14, 2011

  1. Jon Leighton

    Get rid of AssociationCollection#save_record

    jonleighton authored

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.
    jonleighton authored
  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.
    jonleighton authored
  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.
    jonleighton authored

Jan 30, 2011

  1. Jon Leighton

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

    jonleighton authored
  2. Jon Leighton

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

    jonleighton authored

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.
    jonleighton authored tenderlove committed

Jan 04, 2011

  1. Jon Leighton

    Create the association scope directly rather than going through with_…

    …scope
    jonleighton authored tenderlove committed
  2. Jon Leighton

    Use the association directly in other places too

    jonleighton authored tenderlove committed
  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.
    jonleighton authored tenderlove committed

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
    jonleighton authored
  2. Jon Leighton

    And owner_quoted_id can go too

    jonleighton authored

Dec 26, 2010

  1. Jon Leighton

    Refactor we_can_set_the_inverse_on_this? to use a less bizarre name a…

    …mongst other things
    jonleighton authored tenderlove committed
  2. Jon Leighton

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

    …e it all use arel rather than SQL strings
    jonleighton authored
  3. Jon Leighton

    Remove target_obsolete? which is not called from anywhere

    jonleighton authored

Dec 20, 2010

  1. Jon Leighton

    Avoid Symbol#to_proc for performance reasons in Ruby 1.8

    jonleighton authored tenderlove committed
  2. Jon Leighton

    has_many associations with :dependent => :delete_all should update th…

    …e counter cache when deleting records
    jonleighton authored tenderlove committed
  3. Jon Leighton

    Refactor delete_records in HasManyAssociation

    jonleighton authored tenderlove committed
Something went wrong with that request. Please try again.