- 15 12月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 29 11月, 2011 1 次提交
-
-
由 Jakub Kuźma 提交于
-
- 28 11月, 2011 1 次提交
-
-
由 Jan Varwig 提交于
Asssigning a parent id to a belongs_to association actually updates the object that is validated when the association has :validates => true
-
- 13 9月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Previously we would just silently write the attribute. This can lead to subtle bugs (for example, see the change in AutosaveAssociation where a through association would wrongly gain an attribute. Also, ensuring that we never gain any new attributes after initialization will allow me to reduce our dependence on method_missing.
-
- 07 7月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Don't construct association scope in initializer. This yields a big performance gain for cases where the association is never used to load the target, for example with preloading. Related: #1873.
-
- 24 5月, 2011 1 次提交
-
-
由 Sebastian Martinez 提交于
-
- 05 3月, 2011 1 次提交
-
-
由 R.T. Lechow 提交于
-
- 04 3月, 2011 1 次提交
-
-
由 R.T. Lechow 提交于
-
- 22 2月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Use proper objects to do the work to build the associations (adding methods, callbacks etc) rather than calling a whole bunch of methods with rather long names.
-
- 18 2月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Split AssociationProxy into an Association class (and subclasses) which manages the association, and a CollectionProxy class which is *only* a proxy. Singular associations no longer have a proxy. See CHANGELOG for more.
-
- 14 2月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 08 2月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 30 1月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 04 1月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
This required changing the code to keep the association proxy for a belongs_to around, despite its target being nil. Which in turn required various changes to the way that stale target checking is handled, in order to support various edge cases (loaded target is nil then foreign key added, foreign key is changed and then changed back, etc). A side effect is that the code is nicer and more succinct. Note that I am removing test_no_unexpected_aliasing since that is basically checking that the proxy for a belongs_to *does* change, which is the exact opposite of the intention of this commit. Also adding various tests for various edge cases and related things. Phew, long commit message!
-
- 01 1月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Rename AssociationReflection#primary_key_name to foreign_key, since the options key which it relates to is :foreign_key
-
- 20 12月, 2010 1 次提交
-
-
由 Emilio Tagua 提交于
-
- 16 12月, 2010 1 次提交
-
-
由 Chiel Wester 提交于
Only call save on belongs_to associations if the record has changed or any nested associations have changed (resolves #3353) Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 14 12月, 2010 1 次提交
-
-
由 Chiel Wester 提交于
Only call save on belongs_to associations if the record has changed or any nested associations have changed (resolves #3353) Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 28 11月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 23 11月, 2010 1 次提交
-
-
由 Ray Baxter 提交于
-
- 20 11月, 2010 2 次提交
-
-
由 Emilio Tagua 提交于
-
由 Marcin Raczkowski 提交于
-
- 09 11月, 2010 1 次提交
-
-
由 David Chelimsky 提交于
- persisted? is the API defined in ActiveModel - makes it easier for extension libraries to conform to ActiveModel APIs without concern for whether the extended object is specifically ActiveRecord [#5927 state:committed] Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 30 10月, 2010 1 次提交
-
-
由 Jon Leighton 提交于
Refactoring: replace the mix of variables like @finder_sql, @counter_sql, etc with just a single scope hash (created on initialization of the proxy). This is now used consistently across all associations. Therefore, all you have to do to ensure finding/counting etc is done correctly is implement the scope correctly.
-
- 22 10月, 2010 1 次提交
-
-
由 Xavier Noria 提交于
This way parent models can get their own after_create and after_update callbacks fired after has_one has done its job.
-
- 18 10月, 2010 1 次提交
-
-
由 Jon Leighton 提交于
Refactoring: replace the mix of variables like @finder_sql, @counter_sql, etc with just a single scope hash (created on initialization of the proxy). This is now used consistently across all associations. Therefore, all you have to do to ensure finding/counting etc is done correctly is implement the scope correctly.
-
- 14 8月, 2010 4 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Prem Sichanugrist 提交于
This will hopefully make Active Record run a bit more faster.
-
由 Santiago Pastorino 提交于
-
由 Prem Sichanugrist 提交于
This will hopefully make Active Record run a bit more faster.
-
- 13 8月, 2010 2 次提交
-
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
-
- 12 8月, 2010 2 次提交
-
-
由 Xavier Noria 提交于
-
由 Paco Guzman 提交于
-
- 10 8月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
-
- 31 7月, 2010 2 次提交
-
-
由 Neeraj Singh 提交于
-
由 Neeraj Singh 提交于
-
- 26 7月, 2010 1 次提交
-
-
由 Thiago Pradi 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 21 7月, 2010 1 次提交
-
-
由 José Valim 提交于
Please check Lighthouse for more information. This reverts commit 4a0d7c1a.
-
- 18 7月, 2010 1 次提交
-
-
由 Subba Rao Pasupuleti 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-