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
*
Improve consistency of counter caches updating in memory
Sean Griffin
2015-01-26
1
-0
/
+3
*
Improve the performance of reading belongs_to associations
Sean Griffin
2014-12-22
1
-5
/
+6
*
add has_one? method and reuse instead of checking macro
eileencodes
2014-06-09
1
-1
/
+1
*
Hide BelongsToAssociation#increment_counters and #decrement_counters
Jean Boussier
2014-04-15
1
-2
/
+2
*
Use inheritance chain instead of callbacks to increment counter caches after ...
Jean Boussier
2014-04-14
1
-4
/
+14
*
extract cache counter logic to one method
Aaron Patterson
2013-12-12
1
-11
/
+10
*
remove duplicate code
Aaron Patterson
2013-12-12
1
-15
/
+6
*
extract a method for updating without a record object
Aaron Patterson
2013-12-12
1
-6
/
+10
*
extract methods out of the cache update method
Aaron Patterson
2013-12-12
1
-14
/
+22
*
pull a nil check up one frame
Aaron Patterson
2013-12-12
1
-6
/
+10
*
remove more nil checks
Aaron Patterson
2013-12-12
1
-6
/
+5
*
remove nil check
Aaron Patterson
2013-12-12
1
-6
/
+10
*
remove the nil check from set_inverse_instance
Aaron Patterson
2013-12-12
1
-1
/
+1
*
Remove useless comment and white spaces :scissors: [ci skip]
Carlos Antonio da Silva
2013-09-01
1
-2
/
+2
*
Adding a bang to method name of raise_on_type_mismatch.
wangjohn
2013-03-21
1
-1
/
+1
*
BELONGS TO ASSOCIATION | Typo fix
libin
2013-02-25
1
-1
/
+1
*
improved different_target conditions
Angelo Capilleri
2013-01-08
1
-2
/
+5
*
move dependency logic out of generated methods
Jon Leighton
2012-08-10
1
-0
/
+5
*
@stale_state should be nil when a model isn't saved.
kennyj
2012-04-13
1
-1
/
+1
*
Some refactor for association.
kennyj
2012-04-12
1
-0
/
+5
*
Fix belongs_to polymorphic with custom primary key on target.
Jon Leighton
2011-09-26
1
-1
/
+5
*
Don't find belongs_to target when the foreign_key is NULL. Fixes #2828
Georg Friedrich
2011-09-05
1
-0
/
+4
*
Fix exception if old and new targets are both nil. Fixes #1471.
Jon Leighton
2011-07-12
1
-1
/
+1
*
Rename target_klass to klass
Jon Leighton
2011-02-21
1
-1
/
+1
*
Delegate Association#options to the reflection, and replace 'reflection.optio...
Jon Leighton
2011-02-21
1
-1
/
+1
*
Singular associations no longer use a proxy, so no need to check for the prox...
Jon Leighton
2011-02-21
1
-1
/
+1
*
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
[next]