Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Implement deprecated version of AssociationReflection#primary_key_name, ↵ | Jon Leighton | 2011-01-03 | 1 | -0/+6 | |
| | | | | | | | | which has been renamed to #foreign_key. Also bumping the deprecation_horizon in Active Support to 3.1. | |||||
| * | Have a proper AssociationReflection#foreign_type method rather than using ↵ | Jon Leighton | 2011-01-03 | 1 | -0/+4 | |
| | | | | | | | | options[:foreign_type] | |||||
| * | Rename AssociationReflection#primary_key_name to foreign_key, since the ↵ | Jon Leighton | 2010-12-31 | 1 | -7/+7 | |
| | | | | | | | | options key which it relates to is :foreign_key | |||||
| * | Now we can drop-kick AssociationReflection#dependent_conditions into oblivion. | Jon Leighton | 2010-12-31 | 1 | -11/+0 | |
| | | ||||||
| * | Raise an error for associations which try to go :through a polymorphic ↵ | Jon Leighton | 2010-12-23 | 1 | -1/+5 | |
| | | | | | | | | association [#6212 state:resolved] | |||||
| * | Improved strategy for updating a belongs_to association when the foreign key ↵ | Jon Leighton | 2010-12-23 | 1 | -1/+4 | |
| | | | | | | | | changes. Rather than resetting each affected association when the foreign key changes, we should lazily check for 'staleness' (where fk does not match target id) when the association is accessed. | |||||
| * | Don't allow a has_one association to go :through a collection association ↵ | Jon Leighton | 2010-12-23 | 1 | -0/+4 | |
| | | | | | | | | [#2976 state:resolved] | |||||
| * | Fix problem where wrong keys are used in JoinAssociation when an association ↵ | Jon Leighton | 2010-12-20 | 1 | -0/+4 | |
| | | | | | | | | goes :through a belongs_to [#2801 state:resolved] | |||||
| * | Fix various issues with the :primary_key option in :through associations ↵ | Jon Leighton | 2010-12-15 | 1 | -1/+5 | |
| | | | | | | | | [#2421 state:resolved] | |||||
| * | reduce method calls | Aaron Patterson | 2010-12-16 | 1 | -1/+1 | |
| | | ||||||
* | | Merge branch 'master' into nested_has_many_through | Jon Leighton | 2010-12-12 | 1 | -1/+1 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/associations/class_methods/join_dependency.rb activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb activerecord/lib/active_record/associations/has_many_through_association.rb | |||||
| * | | reduce method calls | Aaron Patterson | 2010-12-10 | 1 | -1/+1 | |
| |/ | ||||||
* | | Merge branch 'master' into nested_has_many_through | Jon Leighton | 2010-11-27 | 1 | -11/+9 | |
|\| | | | | | | | | | | | Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/associations.rb | |||||
| * | class inheritable attributes is used no more! all internal use of class ↵ | Josh Kalderimis | 2010-11-20 | 1 | -11/+9 | |
| | | | | | | | | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | | Fix naughty trailing whitespace | Jon Leighton | 2010-10-31 | 1 | -21/+21 | |
| | | ||||||
* | | Merge branch 'master' into nested_has_many_through | Jon Leighton | 2010-10-28 | 1 | -2/+2 | |
|\| | | | | | | | | | | | | | | | Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/test/schema/schema.rb | |||||
| * | use grep instead of select + is_a? | Aaron Patterson | 2010-10-20 | 1 | -2/+2 | |
| | | ||||||
* | | Add some comments for ThroughReflection#through_reflection_chain | Jon Leighton | 2010-10-19 | 1 | -1/+10 | |
| | | ||||||
* | | Remove various comments and code which were just being used during the ↵ | Jon Leighton | 2010-10-19 | 1 | -24/+0 | |
| | | | | | | | | development of nested through association support (OMFGZ, I might just have nearly finished this\! | |||||
* | | Add explicit tests for the nested through association changes in reflection.rb | Jon Leighton | 2010-10-19 | 1 | -2/+13 | |
| | | ||||||
* | | Bugfix/refactoring | Jon Leighton | 2010-10-19 | 1 | -0/+9 | |
| | | ||||||
* | | Remove unused methods | Jon Leighton | 2010-10-19 | 1 | -11/+0 | |
| | | ||||||
* | | Support for :primary_key option on the source reflection of a through ↵ | Jon Leighton | 2010-10-19 | 1 | -0/+8 | |
| | | | | | | | | association, where the source is a has_one or has_many | |||||
* | | Properly support conditions on any of the reflections involved in a nested ↵ | Jon Leighton | 2010-10-19 | 1 | -3/+50 | |
| | | | | | | | | through association | |||||
* | | Make sure nested through associations are read only | Jon Leighton | 2010-10-15 | 1 | -0/+4 | |
| | | ||||||
* | | Integrate nested support into ThroughAssociationScope, using my concept of ↵ | Jon Leighton | 2010-10-02 | 1 | -10/+40 | |
| | | | | | | | | generating a 'chain' of reflections to be joined. It seems to work at the moment, all existing tests are passing. There may be further complications as we add more test cases for nested associations, though. | |||||
* | | Started implementing nested :through associations by using the existing ↵ | Jon Leighton | 2010-10-01 | 1 | -0/+15 | |
| | | | | | | | | structure of ThroughAssociationScope rather than layering a module over the top | |||||
* | | Initial nested_has_many_through support [#1152] | Bodaniel Jeanes | 2010-09-26 | 1 | -3/+3 | |
|/ | ||||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -13/+13 | |
| | | | | 's/[ \t]*$//' -i {} \;) | |||||
* | applied guidelines to "# =>" | Paco Guzman | 2010-08-12 | 1 | -1/+1 | |
| | ||||||
* | Tidy up previous commit. | José Valim | 2010-08-02 | 1 | -14/+12 | |
| | ||||||
* | returns not returned . fixing documentation for reflection | Neeraj Singh | 2010-07-30 | 1 | -28/+30 | |
| | ||||||
* | bringing consistency in comments | Neeraj Singh | 2010-07-24 | 1 | -14/+17 | |
| | ||||||
* | Adds basic description and title. | Rizwan Reza | 2010-06-16 | 1 | -15/+30 | |
| | ||||||
* | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-11 | 1 | -4/+4 | |
| | ||||||
* | Bring back +extra_conditions+. This effectively reverts ↵ | Carl Lerche | 2010-04-03 | 1 | -1/+2 | |
| | | | | 386b7bfd9d78a6d8c8bc7cc4a310df806ad0ba57 | |||||
* | Make the query built by has_many ...., :dependent => :____ lazy since all ↵ | Carl Lerche | 2010-04-02 | 1 | -0/+10 | |
| | | | | the information is not really available yet. | |||||
* | cleaning up some test warnings | Aaron Patterson | 2010-03-14 | 1 | -3/+5 | |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | |||||
* | Renamed AssociationReflection #collection_association? to #collection?. | Eloy Duran | 2010-01-08 | 1 | -5/+5 | |
| | ||||||
* | Moved the validation logic to the association reflection and refactored ↵ | Eloy Duran | 2010-01-07 | 1 | -0/+13 | |
| | | | | autosave_association.rb a bit. | |||||
* | Cleanup some code in nested_attributes.rb, autosave_association.rb, and ↵ | Eloy Duran | 2010-01-07 | 1 | -1/+4 | |
| | | | | | | associations.rb with AssociationReflection#collection_association? Also cache the result value. | |||||
* | Add AssociationReflection#collection_association? which returns true if it's ↵ | Eloy Duran | 2010-01-07 | 1 | -1/+8 | |
| | | | | for a has_many or has_and_belongs_to_many association. | |||||
* | Make polymorphic_inverse_of in Reflection throw an ↵ | Murray Steele | 2009-12-28 | 1 | -5/+5 | |
| | | | | | | InverseOfAssociationNotFoundError if the supplied class doesn't have the appropriate association. [#3520 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com> | |||||
* | Add inverse polymorphic association support. [#3520 state:resolved] | George Ogata | 2009-12-28 | 1 | -2/+12 | |
| | | | | Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com> | |||||
* | Enable has_many :through for going through a has_one association on the join ↵ | Gabe da Silveira | 2009-08-10 | 1 | -1/+1 | |
| | | | | | | model [#2719 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | 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. | |||||
* | Use DependencyModule for included hooks in ActiveRecord | Bryan Helmkamp | 2009-05-11 | 1 | -3/+1 | |
| | ||||||
* | Providing support for :inverse_of as an option to associations. | Murray Steele | 2009-05-04 | 1 | -0/+21 | |
| | | | | | | | | | | | | | | | | | | | | | | 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> | |||||
* | Ensure belongs_to association with a counter cache in name spaced model ↵ | Adam Cooper | 2009-03-06 | 1 | -1/+1 | |
| | | | | | | works [#1678 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Add support for nested object forms to ActiveRecord and the helpers in ↵ | Eloy Duran | 2009-02-01 | 1 | -0/+5 | |
| | | | | | | | | ActionPack Signed-Off-By: Michael Koziarski <michael@koziarski.com> [#1202 state:committed] |