Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Merge docrails | Pratik Naik | 2009-07-25 | 1 | -5/+71 | |
| | | ||||||
* | | Introduced ActiveRecord::Relation, a layer between an ARel relation and an ↵ | Emilio Tagua | 2009-07-21 | 1 | -8/+9 | |
| | | | | | | | | AR relation | |||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-07-16 | 1 | -3/+6 | |
|\| | ||||||
| * | Add primary_key option to belongs_to association | Szymon Nowak | 2009-07-15 | 1 | -3/+6 | |
| | | | | | | | | | | | | [#765 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | | Added ActiveRecord::Base#(where|join|project|group|order|take|skip) methods. | Emilio Tagua | 2009-07-16 | 1 | -8/+8 | |
| | | ||||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-07-14 | 1 | -1/+8 | |
|\| | ||||||
| * | Use map! instead of map for <association>_ids | Pratik Naik | 2009-07-13 | 1 | -2/+2 | |
| | | ||||||
| * | Optimize <association>_ids for hm:t with belongs_to source | Pratik Naik | 2009-07-13 | 1 | -1/+8 | |
| | | ||||||
* | | Arel now buils SQL queries for associations. Removed old code and | Emilio Tagua | 2009-06-23 | 1 | -47/+6 | |
| | | | | | | | | updated Arel version to support this. | |||||
* | | Leave the quoting part to ARel | Emilio Tagua | 2009-06-12 | 1 | -7/+2 | |
|\| | ||||||
| * | HasOneThroughAssociation still shouldn't derive from HasManyThroughAssociation. | Adam Milligan | 2009-06-12 | 1 | -7/+2 | |
| | | | | | | | | | | | | [#1642 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | | Use ARel in SQL generation through associations | Emilio Tagua | 2009-06-10 | 1 | -11/+15 | |
| | | ||||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-06-02 | 1 | -1/+1 | |
|\| | | | | | | | | | | | Conflicts: activerecord/lib/active_record.rb | |||||
| * | Break up DependencyModule's dual function of providing a "depend_on" DSL and ↵ | Joshua Peek | 2009-05-28 | 1 | -1/+1 | |
| | | | | | | | | "included" block DSL into separate modules. But, unify both approaches under AS::Concern. | |||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-05-18 | 1 | -1/+3 | |
|\| | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/base.rb activerecord/lib/active_record/migration.rb activerecord/test/cases/helper.rb | |||||
| * | Fixed limited eager loading associations with numbers in the name [#2668 ↵ | Benjamin Floering | 2009-05-18 | 1 | -1/+1 | |
| | | | | | | | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
| * | Cherry-pick core extensions | Jeremy Kemper | 2009-05-13 | 1 | -0/+2 | |
| | | ||||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-05-12 | 1 | -10/+26 | |
|\| | ||||||
| * | Use DependencyModule for included hooks in ActiveRecord | Bryan Helmkamp | 2009-05-11 | 1 | -4/+2 | |
| | | ||||||
| * | Fixed eager load error on find with include => [:table_name] and hash ↵ | Anthony Crumley | 2009-05-10 | 1 | -4/+16 | |
| | | | | | | | | | | | | conditions like {:table_name => {:column => 'value'}} Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
| * | honour :inverse_of for joins based include | Frederick Cheung | 2009-05-10 | 1 | -2/+8 | |
| | | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-05-05 | 1 | -3/+9 | |
|\| | ||||||
| * | Providing support for :inverse_of as an option to associations. | Murray Steele | 2009-05-04 | 1 | -3/+9 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> | |||||
* | | Calculations now use Arel to construct the query. | Emilio Tagua | 2009-04-29 | 1 | -10/+18 | |
|/ | | | | Implemented other methods in AR::Base with Arel support. | |||||
* | Ensure :dependent => :delete_all works for association with hash conditions | Pratik Naik | 2009-04-20 | 1 | -1/+1 | |
| | ||||||
* | Ensure JoinAssociation uses aliased table name when multiple associations ↵ | Pratik Naik | 2009-04-20 | 1 | -1/+1 | |
| | | | | have hash conditions on the same table | |||||
* | Added :touch option to belongs_to associations that will touch the parent ↵ | David Heinemeier Hansson | 2009-04-16 | 1 | -23/+45 | |
| | | | | record when the current record is saved or destroyed [DHH] | |||||
* | Ensure NoMethodError isn't raised when some of the nested eager loaded ↵ | Murray Steele | 2009-03-12 | 1 | -4/+9 | |
| | | | | | | associations are empty [#1696 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Fix RDoc grammar and ensure hm:t tests can run in isolation. [#1644 ↵ | Adam Milligan | 2009-03-07 | 1 | -1/+1 | |
| | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Ensure belongs_to association with a counter cache in name spaced model ↵ | Adam Cooper | 2009-03-06 | 1 | -3/+1 | |
| | | | | | | works [#1678 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Ensure self referential HABTM associations raise an exception if ↵ | Tom Lea | 2009-03-06 | 1 | -0/+10 | |
| | | | | | | association_foreign_key is missing. [#1252 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Force all internal calls to Array#to_sentence to use English [#2010 ↵ | David Heinemeier Hansson | 2009-02-27 | 1 | -1/+1 | |
| | | | | state:resolved] | |||||
* | Fixed that autosave should validate associations even if master is invalid ↵ | David Heinemeier Hansson | 2009-02-27 | 1 | -118/+2 | |
| | | | | [#1930 status:committed] | |||||
* | Merge with docrails | Pratik Naik | 2009-02-24 | 1 | -36/+29 | |
| | ||||||
* | Merge docrails along with the new guides and guides generation code | Pratik Naik | 2009-02-06 | 1 | -0/+16 | |
| | ||||||
* | Merge docrails | Pratik Naik | 2009-02-01 | 1 | -4/+5 | |
| | ||||||
* | Add support for nested object forms to ActiveRecord and the helpers in ↵ | Eloy Duran | 2009-02-01 | 1 | -43/+48 | |
| | | | | | | | | ActionPack Signed-Off-By: Michael Koziarski <michael@koziarski.com> [#1202 state:committed] | |||||
* | Make belongs_to :dependent => :destroy destroy self before associated ↵ | Ben VandenBos | 2009-01-16 | 1 | -2/+2 | |
| | | | | | | | | object [#1079 state:resolved] If foreign key constraints are in place then deleteing the associated object first will cause a foreign key violation Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com> | |||||
* | Merge commit 'fred/pullable' | Pratik Naik | 2008-12-30 | 1 | -2/+2 | |
|\ | ||||||
| * | Fix to_sentence being used with options removed by 273c77 | Frederick Cheung | 2008-12-27 | 1 | -1/+1 | |
| | | ||||||
| * | Fix :include of has_many associations with :primary_key option | Frederick Cheung | 2008-12-26 | 1 | -1/+1 | |
| | | ||||||
* | | Inline code comments for class_eval/module_eval [#1657 state:resolved] | Xavier Noria | 2008-12-28 | 1 | -18/+18 | |
|/ | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Fix configure_dependency_for_has_many not quoting conditions properly [#1461 ↵ | Frederick Cheung | 2008-12-21 | 1 | -3/+3 | |
| | | | | state:resolved] | |||||
* | Fix has many through not quoting table names [#1163 state:resolved] | Karthik Krishnan | 2008-12-20 | 1 | -1/+1 | |
| | | | | Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com> | |||||
* | Merge docrails | Pratik Naik | 2008-12-19 | 1 | -5/+5 | |
| | ||||||
* | Don't include table_name twice | Frederick Cheung | 2008-12-18 | 1 | -1/+1 | |
| | ||||||
* | Ensure :include checks joins when determining if it can preload [#528 ↵ | Frederick Cheung | 2008-12-18 | 1 | -10/+33 | |
| | | | | state:resolved] | |||||
* | Add :having option to find, to use in combination with grouped finds. Also ↵ | miloops | 2008-12-01 | 1 | -4/+8 | |
| | | | | | | | added to has_many and has_and_belongs_to_many associations. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1028 state:committed] | |||||
* | Ensure hash conditions on referenced tables are considered when eager ↵ | Paul | 2008-11-26 | 1 | -0/+1 | |
| | | | | | | loading with limit/offset. [#1404 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Autoload ActiveRecord files | Joshua Peek | 2008-11-24 | 1 | -10/+12 | |
| |