index
:
rails.git
3-2-stable-for-hmno
master
Mirror of official rails repo with custom fixes.
Harald Eilertsen
about
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
path:
root
/
activerecord
/
lib
/
active_record
/
associations
/
belongs_to_association.rb
Commit message (
Expand
)
Author
Age
Files
Lines
*
Associations - where possible, call attributes methods rather than directly a...
Jon Leighton
2011-02-21
1
-10
/
+10
*
Let's be less blasé about method visibility on association proxies
Jon Leighton
2011-01-30
1
-0
/
+1
*
find_target can also go into SingularAssociation
Jon Leighton
2011-01-16
1
-4
/
+0
*
Abstract a bit more into SingularAssociation
Jon Leighton
2011-01-16
1
-2
/
+1
*
Use self.target= rather than @target= as the former automatically sets loaded
Jon Leighton
2011-01-16
1
-3
/
+1
*
Abstract common code from BelongsToAssociation and HasOneAssociation into Sin...
Jon Leighton
2011-01-16
1
-19
/
+1
*
belongs_to records should be initialized within the association scope
Jon Leighton
2011-01-16
1
-2
/
+8
*
Add create_association! for belongs_to
Jon Leighton
2011-01-16
1
-0
/
+4
*
reduce funcalls by using falsey objects
Aaron Patterson
2011-01-14
1
-2
/
+2
*
Construct an actual ActiveRecord::Relation object for the association scope, ...
Jon Leighton
2011-01-07
1
-17
/
+0
*
When preloading a belongs_to, the target should still be set (to nil) if ther...
Jon Leighton
2011-01-03
1
-3
/
+1
*
Create the association scope directly rather than going through with_scope
Jon Leighton
2011-01-03
1
-1
/
+1
*
Rename AssociationProxy#foreign_key_present to foreign_key_present?
Jon Leighton
2011-01-03
1
-3
/
+3
*
Allow assignment on has_one :through where the owner is a new record [#5137 s...
Jon Leighton
2011-01-03
1
-11
/
+4
*
Rename AssociationReflection#primary_key_name to foreign_key, since the optio...
Jon Leighton
2010-12-31
1
-7
/
+7
*
Support for :counter_cache on polymorphic belongs_to
Jon Leighton
2010-12-31
1
-1
/
+1
*
Refactor BelongsToAssociation to allow BelongsToPolymorphicAssociation to inh...
Jon Leighton
2010-12-31
1
-49
/
+55
*
Refactor we_can_set_the_inverse_on_this? to use a less bizarre name amongst o...
Jon Leighton
2010-12-26
1
-4
/
+5
*
If a has_many goes :through a belongs_to, and the foreign key of the belongs_...
Jon Leighton
2010-12-23
1
-1
/
+4
*
Improved strategy for updating a belongs_to association when the foreign key ...
Jon Leighton
2010-12-23
1
-0
/
+8
*
removing space error
Aaron Patterson
2010-11-22
1
-1
/
+1
*
use persisted? instead of new_record? wherever possible
David Chelimsky
2010-11-09
1
-3
/
+3
*
Refactoring: replace the mix of variables like @finder_sql, @counter_sql, etc...
Jon Leighton
2010-10-30
1
-9
/
+11
*
dry up the hash dup and avoid sending nil values
Aaron Patterson
2010-08-11
1
-4
/
+8
*
Don't increment and then decrement the same counter when re-assigning a belon...
Tarmo Tänav
2010-07-29
1
-1
/
+1
*
Adds title to activerecord/lib/active_record/associations/*
Rizwan Reza
2010-06-16
1
-0
/
+1
*
Remove whitespace.
Emilio Tagua
2009-08-19
1
-2
/
+2
*
Add primary_key option to belongs_to association
Szymon Nowak
2009-07-15
1
-4
/
+22
*
Providing support for :inverse_of as an option to associations.
Murray Steele
2009-05-04
1
-1
/
+11
*
Add special AssociationReflection methods for creating association objects, a...
Hongli Lai (Phusion)
2008-09-09
1
-2
/
+2
*
Fix file permissions
Tarmo Tänav
2008-07-31
1
-0
/
+0
*
Added :select option to has_one and belongs_to, remove unused :order option o...
josevalim
2008-05-24
1
-2
/
+3
*
Introduce the :readonly option to all associations. Records from the associat...
Jeremy Kemper
2008-02-13
1
-1
/
+2
*
Make sure that belongs_to counter decrements when assigning nil Closes #10804...
Michael Koziarski
2008-01-26
1
-1
/
+1
*
Backed out of new_record? to new? transformation as it would screw up existin...
David Heinemeier Hansson
2006-09-05
1
-3
/
+3
*
Deprecated ActiveRecord::Base.new_record? in favor of ActiveRecord::Base.new?...
David Heinemeier Hansson
2006-09-05
1
-3
/
+3
*
Use association's :conditions when eager loading. [jeremyevans0@gmail.com] cl...
Rick Olson
2006-03-16
1
-1
/
+1
*
Fix counter cache setting in belongs-to proxy
Jamis Buck
2006-03-09
1
-1
/
+1
*
Make counter cache work when replacing an association (closes #3245). Thanks ...
Jamis Buck
2006-03-04
1
-0
/
+11
*
Added preliminary support for join models [DHH] Added preliminary support for...
David Heinemeier Hansson
2005-12-03
1
-42
/
+16
*
Work-in progress for providing better join model support and polymorphic asso...
David Heinemeier Hansson
2005-12-02
1
-4
/
+0
*
Added :include as an option for association declarations [DHH]
David Heinemeier Hansson
2005-11-06
1
-2
/
+6
*
Fix errors caused by assigning a has-one or belongs-to property to itself
Jamis Buck
2005-10-13
1
-1
/
+1
*
Fixed that the create_x method from belongs_to wouldn't save the association ...
David Heinemeier Hansson
2005-09-20
1
-2
/
+2
*
Fixed saving a record with two unsaved belongs_to associations pointing to th...
Jamis Buck
2005-09-20
1
-0
/
+5
*
Added support for calling constrained class methods on has_many and has_and_b...
David Heinemeier Hansson
2005-07-22
1
-2
/
+11
*
Moved build_association and create_association for has_one and belongs_to out...
David Heinemeier Hansson
2005-04-12
1
-1
/
+0
*
Fixed that the belongs_to and has_one proxy would fail a test like 'if projec...
David Heinemeier Hansson
2005-01-18
1
-17
/
+1
*
belongs_to association should always honor a present foreign key and conditio...
David Heinemeier Hansson
2005-01-17
1
-1
/
+5
*
Added support for associating unsaved objects #402 [Tim Bates]
David Heinemeier Hansson
2005-01-15
1
-0
/
+70