Skip to content
This repository

Oct 24, 2006

  1. Jamis Buck

    update deprecations to include alternative methods (where available)

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5359 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored October 24, 2006

Oct 08, 2006

  1. Jeremy Kemper

    The has_many create method works with polymorphic associations. Closes

    …#6361.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored October 08, 2006

Sep 26, 2006

  1. Jeremy Kemper

    Deprecation: count class method should be called with an options hash…

    … rather than two args for conditions and joins. Closes #6287.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5192 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored September 26, 2006

Sep 15, 2006

  1. Jeremy Kemper

    Deprecation tests. Remove warnings for dynamic finders and for the fo…

    …o_count ethod if it's also an attribute.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5116 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored September 15, 2006

Sep 05, 2006

  1. David Heinemeier Hansson

    Backed out of new_record? to new? transformation as it would screw up…

    … existing models that did boolean calls on "new" attributes [DHH]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5018 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored September 05, 2006
  2. David Heinemeier Hansson

    Deprecated ActiveRecord::Base.new_record? in favor of ActiveRecord::B…

    …ase.new? (old version still works until Rails 2.0) [DHH]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5017 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored September 05, 2006

Sep 04, 2006

  1. Michael Koziarski

    Rename quote to quote_value so the name can be used in AR models. #3628

    … [Koz]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5007 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored September 04, 2006

Jul 24, 2006

  1. risk danger olson

    Allow #count through a has_many association to accept :include. [Dan …

    …Peterson]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4618 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored July 24, 2006

Jun 03, 2006

  1. David Heinemeier Hansson

    Fixed that has_many.create ended up with duplicate objects (closes #5250

    ) [daniel@nouvelles-solutions.com]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored June 03, 2006

May 21, 2006

  1. David Heinemeier Hansson

    Minor style tweaks

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4355 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored May 21, 2006
  2. David Heinemeier Hansson

    Fixed that has_many collections shouldn't load the entire association…

    … to do build or create [DHH]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4354 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored May 21, 2006

May 06, 2006

  1. Jeremy Kemper

    Allow :uniq => true with has_many :through associations.

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4325 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored May 06, 2006

Apr 19, 2006

  1. risk danger olson

    Fix the HasManyAssociation#count method so it uses the new ActiveReco…

    …rd::Base#count syntax, while maintaining backwards compatibility. [Rick]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored April 19, 2006

Apr 06, 2006

  1. David Heinemeier Hansson

    Fix HasManyAssociation#find bugs when :finder_sql is set (closes #4600)…

    … [lagroue@free.fr]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored April 06, 2006

Mar 16, 2006

  1. risk danger olson

    Use association's :conditions when eager loading. [jeremyevans0@gmail…

    ….com] closes #4144
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3897 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored March 16, 2006
  2. risk danger olson

    Added Base.abstract_class? that marks which classes are not part of t…

    …he Active Record hierarchy. closes #3704
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3882 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored March 16, 2006

Feb 12, 2006

  1. David Heinemeier Hansson

    save polymorphic joins from the has_many|one association (closes #3812)…

    … [Rick Olson]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3586 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored February 12, 2006

Feb 03, 2006

  1. David Heinemeier Hansson

    Using AssociationCollection#build with arrays of hashes should call b…

    …uild, not create [DHH]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored February 03, 2006

Jan 21, 2006

  1. Michael Koziarski

    Fix .count for has_many associations with multi-line finder-sql. Closes

    #3540
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3450 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored January 21, 2006

Dec 13, 2005

  1. David Heinemeier Hansson

    Added option inheritance for find calls on has_and_belongs_to_many an…

    …d has_many assosociations [DHH] Added option to specify :group, :limit, :offset, and :select options from find on has_and_belongs_to_many and has_many assosociations [DHH]
    
    Added form_remote_for (form_for meets form_remote_tag) [DHH]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3287 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 13, 2005

Dec 03, 2005

  1. David Heinemeier Hansson

    Added preliminary support for join models [DHH] Added preliminary sup…

    …port for polymorphic associations [DHH] Refactored associations to use reflections to get DRYer, beware, major refactoring -- double check before deploying anything with this (all tests pass, but..)
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 03, 2005

Dec 02, 2005

  1. David Heinemeier Hansson

    Work-in progress for providing better join model support and polymorp…

    …hic associations
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3209 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored December 02, 2005

Nov 10, 2005

  1. Jeremy Kemper

    Add :group option, correspond to GROUP BY, to the find method and to …

    …the has_many association. Closes #2818.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2974 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored November 10, 2005

Nov 06, 2005

  1. David Heinemeier Hansson

    Added :include as an option for association declarations [DHH]

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2898 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored November 06, 2005
  2. Jeremy Kemper

    r2915@asus: jeremy | 2005-11-06 05:02:53 -0800

     Rename Base.constrain to Base.with_scope so it doesn't conflict with existing concept of database constraints.  Make scoping more robust: uniform method => parameters, validated method names and supported finder parameters, raise exception on nested scopes.
    
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2888 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored November 06, 2005

Nov 04, 2005

  1. David Heinemeier Hansson

    Added extension capabilities to has_many and has_and_belongs_to_many …

    …proxies [DHH] Added find_or_create_by_X as a second type of dynamic finder that'll create the record if it doesn't already exist [DHH] Added constrain scoping for creates using a hash of attributes bound to the :creation key [DHH]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2872 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored November 04, 2005

Oct 18, 2005

  1. Jeremy Kemper

    Parenthesize :conditions

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored October 18, 2005

Oct 14, 2005

  1. DRYed up Associations#clear. Closes #1906 [Caleb]

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2580 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored October 14, 2005

Sep 28, 2005

  1. Jeremy Kemper

    r3653@asus: jeremy | 2005-09-28 00:23:49 -0700

     Ticket 2221 - model.association.clear should destroy associated objects if :dependent => true instead of nullifying their foreign keys
    
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2384 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored September 28, 2005

Sep 24, 2005

  1. Jamis Buck

    Wrap :conditions in parentheses to prevent problems with OR's #1871

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2324 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored September 24, 2005

Jul 22, 2005

  1. David Heinemeier Hansson

    Added support for calling constrained class methods on has_many and h…

    …as_and_belongs_to_many collections #1764 [Tobias Luetke]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1894 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored July 22, 2005

Jun 24, 2005

  1. Jeremy Kemper

    Pass association finder arguments through to the association class ex…

    …actly as we received them. Fixes case where parent.children.find() is interpreted as Child.find([]) instead of Child.find().
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1498 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored June 24, 2005

Jun 13, 2005

  1. Jamis Buck

    Be sure to use the @finder_sql in the has_many association's #find me…

    …thod, even if explicit conditions have not been given.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1412 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored June 13, 2005
  2. Jeremy Kemper

    r1294@iwill: jeremy | 2005-06-13 02:17:42 -0700

     Ticket #1281
     r1295@iwill:  jeremy | 2005-06-13 02:50:50 -0700
     Apply patch, tweak, and test.
     r1296@iwill:  jeremy | 2005-06-13 02:51:04 -0700
     Changelog entry.
    
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1410 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored June 13, 2005

Apr 23, 2005

  1. David Heinemeier Hansson

    Optimize counting of has_many associations by setting the association…

    … to empty if the count is 0
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    authored April 23, 2005
Something went wrong with that request. Please try again.