Skip to content
This repository

Aug 15, 2011

  1. Jon Leighton

    Fix deprecation warnings due to private methods which are delegated to.

    jonleighton authored

Jul 07, 2011

  1. Jon Leighton

    Don't construct association scope in initializer. This yields a big p…

    …erformance gain for cases where the association is never used to load the target, for example with preloading. Related: #1873.
    jonleighton authored

Jun 30, 2011

  1. Jon Leighton

    Add an extremely lulzy deprecation warning which tries to detect if A…

    …ssociationReflection#build_association has been overridden, but ignores the block argument.
    jonleighton authored
  2. Jon Leighton

    Assign the association attributes to the associated record before the…

    … before_initialize callback of the record runs. Fixes #1842.
    jonleighton authored

Jun 07, 2011

  1. Jon Leighton

    When you add a record to a polymorphic has_one, you should be able to…

    … access the owner from the associated record
    jonleighton authored
  2. Jon Leighton

    Allow polymorphic has_one to work when the association is set before …

    …the owner has been saved. Fixes #1524.
    jonleighton authored

Apr 13, 2011

  1. Prem Sichanugrist

    Remove `#among?` from Active Support

    After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now.
    
    It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
    sikachu authored dhh committed

Apr 11, 2011

  1. David Heinemeier Hansson

    Change Object#either? to Object#among? -- thanks to @jamesarosen for …

    …the suggestion!
    dhh authored

Apr 10, 2011

  1. Prem Sichanugrist

    Using Object#in? and Object#either? in various places

    There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
    sikachu authored dhh committed

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

Mar 05, 2011

  1. R.T. Lechow

    Active Record typos.

    rtlechow authored fxn committed

Mar 04, 2011

  1. Jon Leighton

    Fix a couple of tests in join_model_test.rb which were failing when t…

    …he identity map is turned off
    jonleighton authored tenderlove committed

Feb 21, 2011

  1. Jon Leighton

    Rename target_klass to klass

    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. Emilio Tagua

    Initialize @target instead asking if it is defined.

    miloops authored
  2. Emilio Tagua

    Reindent and remove wrong line left in merge by mistake.

    miloops authored
  3. Emilio Tagua

    Merge remote branch 'rails/master' into identity_map

    Conflicts:
    	activerecord/lib/active_record/associations/association.rb
    	activerecord/lib/active_record/fixtures.rb
    miloops authored
  4. 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
Something went wrong with that request. Please try again.