Skip to content
This repository

Feb 13, 2011

  1. Jon Leighton

    Deprecated support for interpolated association conditions with the :…

    …conditions => 'foo = #{bar}' syntax, and added the new interpolation syntax which is :conditions => proc { "foo = #{bar}" }.
    jonleighton authored

Aug 14, 2010

  1. Santiago Pastorino

    Deletes trailing whitespaces (over text files only find * -type f -ex…

    …ec sed 's/[ \t]*$//' -i {} \;)
    spastorino authored

Aug 13, 2010

  1. Aaron Patterson

    removing references to arel constants

    tenderlove authored
  2. Aaron Patterson

    avoiding symbol to proc again

    tenderlove authored

Aug 04, 2010

  1. Xavier Noria

    standarizes the use of the article "an" for "SQL" and "SQLite"

    fxn authored

Jun 29, 2010

  1. Neeraj Singh

    splitting a really long line into multiple lines which is easy on eyes

    Signed-off-by: José Valim <jose.valim@gmail.com>
    neerajdotname authored josevalim committed

Jun 16, 2010

  1. Rizwan Reza

    Adds title to activerecord/lib/active_record/associations/*

    rizwanreza authored

Mar 16, 2010

  1. Aaron Patterson

    clean up more warnings, remove unnecessary methods, fix eval line num…

    …bers. [#4193 state:resolved]
    
    Signed-off-by: wycats <wycats@gmail.com>
    tenderlove authored wycats committed

Jan 17, 2010

  1. José Valim

    save(false) is gone, use save(:validate => false) instead.

    josevalim authored

Jan 01, 2010

  1. Pratik

    Use Arel::Table instead of ActiveRecord::Relation from HABTM and has_…

    …many#delete_records
    lifo authored

Dec 25, 2009

  1. Pratik

    Rename Model.conditions and relation.conditions to .where

    lifo authored

Nov 13, 2009

  1. Jeremy Kemper

    Revert "Split arel_table into method to get a relation and another to…

    … memoize the default relation."
    
    This reverts commit bd51790.
    jeremy authored
  2. Jeremy Kemper

    Split arel_table into method to get a relation and another to memoize…

    … the default relation.
    jeremy authored

Nov 03, 2009

  1. Jeremy Kemper

    Arel::In -> Arel::Predicates::In

    jeremy authored

Aug 18, 2009

  1. Emilio Tagua

    has_many nullify associations keys using ARel.

    miloops authored

Aug 10, 2009

  1. Gabe da Silveira

    Fix that counter_cache breaks with has_many :dependent => :nullify.

    [#1196 state:committed]
    
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
    gtd authored jeremy committed

Jun 30, 2009

  1. Pratik

    Revert "Revert "Generate proper :counter_sql from :finder_sql when th…

    …ere is a newline character immediately following 'SELECT' [#2118 state:resolved]""
    
    This reverts commit 80f1f86.
    
    The feature doesn't work on Postgres, so don't test it on Postgres.
    Also, Postgres compatibility is irrelevant to the ticket/patch in question.
    lifo authored

Jun 22, 2009

  1. Revert "Generate proper :counter_sql from :finder_sql when there is a…

    … newline character immediately following 'SELECT' [#2118 state:resolved]"
    
    This reverts commit 4851ca9.
    
    The tests do not pass for postgresql.
    Yehuda Katz + Carl Lerche authored

Jun 21, 2009

  1. Patrick Joyce

    Generate proper :counter_sql from :finder_sql when there is a newline…

    … character immediately following 'SELECT' [#2118 state:resolved]
    
    Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
    KeeperPat authored lifo committed

May 04, 2009

  1. Murray Steele

    Providing support for :inverse_of as an option to associations.

    You can now add an :inverse_of option to has_one, has_many and belongs_to associations.  This is best described with an example:
    
    class Man < ActiveRecord::Base
      has_one :face, :inverse_of => :man
    end
    
    class Face < ActiveRecord::Base
      belongs_to :man, :inverse_of => :face
    end
    
    m = Man.first
    f = m.face
    
    Without :inverse_of m and f.man would be different instances of the same object (f.man being pulled from the database again).  With these new :inverse_of options m and f.man are the same in memory instance.
    
    Currently :inverse_of supports has_one and has_many (but not the :through variants) associations.  It also supplies inverse support for belongs_to associations where the inverse is a has_one and it's not a polymorphic.
    
    Signed-off-by: Murray Steele <muz@h-lame.com>
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
    h-lame authored jeremy committed

Feb 27, 2009

  1. David Heinemeier Hansson

    Fixed that autosave should validate associations even if master is in…

    …valid [#1930 status:committed]
    dhh authored

Oct 21, 2008

  1. Pratik

    Merge with docrails. Also add a rake task to generate guides in your …

    …rails application :
    
      rake doc:guides
    
    The rake task will generate guides inside doc/guides directory of your application. Open index.html to browse.
    lifo authored

Sep 16, 2008

  1. Michael Koziarski

    Update the documentation to reflect the change handling :group earlier

    NZKoz authored

Sep 03, 2008

  1. Pratik

    Merge docrails

    lifo authored

Aug 28, 2008

  1. Ernie Miller

    Refactored AssociationCollection#count for uniformity and Ruby 1.8.7 …

    …support.
    
    [#831 state:resolved]
    
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
    ernie authored jeremy committed
  2. Tarmo Tänav

    Implement count limit/offset support for has_many associations

    [#348 state:resolved]
    
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
    tarmo authored jeremy committed

Aug 21, 2008

  1. Xavier Noria

    Fix has_many#count_records. [#865 state:resolved]

    Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
    fxn authored lifo committed

Jul 09, 2008

  1. Cheah Chu Yeow

    Remove some Symbol#to_proc usage in runtime code. [#484 state:resolved]

    chuyeow authored jeremy committed

Jul 06, 2008

  1. André Arko

    Add has_many :primary_key option to allow setting the primary key on …

    …a has many association
    
    Signed-off-by: Michael Koziarski <michael@koziarski.com>
    indirect authored NZKoz committed

Jun 26, 2008

  1. André Arko

    Extract owner_quoted_id so it can be overridden. [#292 state:committed]

    indirect authored jeremy committed

Jun 09, 2008

  1. Brandon Keepers

    fix eager loading with dynamic finders

    bkeepers authored technoweenie committed

May 29, 2008

  1. Pratik

    Ensure AssociationCollection#count works with empty condition. [#271

    …state:resolved] [Jan De Poorter]
    lifo authored

Apr 06, 2008

  1. Pratik

    Remove duplicate code from associations. [Pratik]

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

    Refactor HasManyThroughAssociation to inherit from HasManyAssociation…

    …. Association callbacks and <association>_ids= now work with hm:t. Closes #11516 [rubyruy]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    lifo authored

Apr 05, 2008

  1. Pratik

    Ensure HABTM#create and HABTM#build do not load entire association. […

    …Pratik]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    lifo authored
Something went wrong with that request. Please try again.