Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 6, 2006
  1. @dhh

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

    dhh authored
    … [lagroue@free.fr]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Mar 16, 2006
  1. @technoweenie
  2. @technoweenie

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

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

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

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

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

    dhh authored
    …uild, not create [DHH]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Jan 21, 2006
  1. @NZKoz
Commits on Dec 13, 2005
  1. @dhh

    Added option inheritance for find calls on has_and_belongs_to_many an…

    dhh authored
    …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
Commits on Dec 3, 2005
  1. @dhh

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

    dhh authored
    …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
Commits on Dec 2, 2005
  1. @dhh

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

    dhh authored
    …hic associations
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3209 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Nov 10, 2005
  1. @jeremy

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

    jeremy authored
    …the has_many association. Closes #2818.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2974 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Nov 6, 2005
  1. @dhh
  2. @jeremy

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

    jeremy authored
     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
Commits on Nov 4, 2005
  1. @dhh

    Added extension capabilities to has_many and has_and_belongs_to_many …

    dhh authored
    …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
Commits on Oct 18, 2005
  1. @jeremy

    Parenthesize :conditions

    jeremy authored
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Oct 14, 2005
  1. DRYed up Associations#clear. Closes #1906 [Caleb]

    Tobias Lütke authored
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2580 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Sep 28, 2005
  1. @jeremy

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

    jeremy authored
     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
Commits on Sep 24, 2005
  1. @jamis
Commits on Jul 22, 2005
  1. @dhh

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

    dhh authored
    …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
Commits on Jun 24, 2005
  1. @jeremy

    Pass association finder arguments through to the association class ex…

    jeremy authored
    …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
Commits on Jun 13, 2005
  1. @jamis

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

    jamis authored
    …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
  2. @jeremy

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

    jeremy authored
     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
Commits on Apr 23, 2005
  1. @dhh

    Optimize counting of has_many associations by setting the association…

    dhh authored
    … to empty if the count is 0
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Apr 19, 2005
  1. @dhh

    Fixed stray comma when using eager loading and ordering together from…

    dhh authored
    … has_many associations #1143
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Apr 18, 2005
  1. @dhh

    Updated documentation here and there

    dhh authored
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1210 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Apr 17, 2005
  1. @dhh

    Dont prefix on updates and deletes, only selects

    dhh authored
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1177 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Apr 15, 2005
  1. @dhh

    Honor the order in the new finder

    dhh authored
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Apr 13, 2005
  1. @dhh
Commits on Apr 3, 2005
  1. @dhh

    More eager fixes

    dhh authored
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  2. @dhh

    Made eager loading work even more

    dhh authored
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1083 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Apr 2, 2005
  1. @dhh

    Added that model.items.delete(child) will delete the child, not just …

    dhh authored
    …set the foreign key to nil, if the child is dependent on the model #978 [bitsweat]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1064 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Mar 6, 2005
  1. @dhh

    Fixed that HasManyAssociation#count was using :finder_sql rather than…

    dhh authored
    … :counter_sql if it was available #445 [Scott Barron]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@834 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Feb 28, 2005
  1. @dhh

    Fixed that association#count would produce invalid sql when called se…

    dhh authored
    …quentialy #659 [kanis@comcard.de]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@813 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Jan 25, 2005
  1. @dhh

    Added the option of supplying an array of ids and attributes to Base#…

    dhh authored
    …update, so that multiple records can be updated at once (inspired by #526/Duane Johnson). Added the option of supplying an array of attributes to Base#create, so that multiple records can be created at once. Added that Base#delete and Base#destroy both can take an array of ids to delete/destroy #336. Added that has_many association build and create methods can take arrays of record data like Base#create and Base#build to build/create multiple records at once.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@504 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Jan 20, 2005
  1. @dhh

    Fixed that find_all would produce invalid sql when called sequentialy #…

    dhh authored
    …490 [Scott Baron]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@464 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Commits on Jan 15, 2005
  1. @dhh

    Added support for associating unsaved objects #402 [Tim Bates]

    dhh authored
    Added replace to associations, so you can do project.manager.replace(new_manager) or project.milestones.replace(new_milestones) #402 [Tim Bates]
    Added build and create methods to has_one and belongs_to associations, so you can now do project.manager.build(attributes) #402 [Tim Bates]
    Fixed that Base#== wouldn't work for multiple references to the same unsaved object #402 [Tim Bates]
    Added that if a before_* callback returns false, all the later callbacks and the associated action are cancelled. If an after_* callback returns false, all the later callbacks are cancelled. Callbacks are generally run in the order they are defined, with the exception of callbacks defined as methods on the model, which are called last. #402 [Tim Bates]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@417 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Something went wrong with that request. Please try again.