- 25 4月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
-
- 13 4月, 2012 1 次提交
-
-
由 kennyj 提交于
-
- 04 4月, 2012 1 次提交
-
-
由 kennyj 提交于
-
- 26 9月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Closes #3104.
-
- 06 9月, 2011 1 次提交
-
-
由 Georg Friedrich 提交于
-
- 12 7月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 09 7月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Ensure that the foreign key gets set when doing record.create_association or record.create_association. Fixes #1960.
-
- 07 6月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 05 6月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Refactor Active Record test connection setup. Please see the RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
-
- 04 6月, 2011 1 次提交
-
-
由 ganesh 提交于
-
- 21 5月, 2011 1 次提交
-
-
由 thedarkone 提交于
-
- 18 5月, 2011 1 次提交
-
-
由 Andrew White 提交于
-
- 02 5月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 01 5月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 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.
-
- 17 1月, 2011 2 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 12 1月, 2011 1 次提交
-
-
由 Ernie Miller 提交于
-
- 08 1月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 05 1月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 04 1月, 2011 2 次提交
-
-
由 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!
-
由 Jon Leighton 提交于
Some basic tests for the :foreign_type option on belongs_to, which was previously completely untested.
-
- 01 1月, 2011 2 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 24 12月, 2010 1 次提交
-
-
由 Jon Leighton 提交于
If a has_many goes :through a belongs_to, and the foreign key of the belongs_to changes, then the has_many should be considered stale.
-
- 09 12月, 2010 1 次提交
-
-
由 Jeff Dean 提交于
-
- 20 11月, 2010 2 次提交
-
-
由 Emilio Tagua 提交于
This reverts commit 4db9dca55e3acc2c59f252eb83ecb83db5f4b81b. Conflicts: activerecord/test/cases/identity_map_test.rb
-
由 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>
-
- 31 10月, 2010 1 次提交
-
-
由 Denis Odorcic 提交于
Convert :primary_key in association to a string before comparing to column names, so that for example :primary_key => :another_pk works as well [#5605 state:resolved]
-
- 29 9月, 2010 1 次提交
-
-
由 Marcelo Giorgi 提交于
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 23 8月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 17 8月, 2010 1 次提交
-
-
由 Xavier Noria 提交于
code gardening: we have assert_(nil|blank|present), more concise, with better default failure messages - let's use them
-
- 02 8月, 2010 1 次提交
-
-
由 Brian Lopez 提交于
-
- 30 7月, 2010 1 次提交
-
-
由 Tarmo Tänav 提交于
[#2786 state:committed] Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 22 7月, 2010 1 次提交
-
-
由 Subba Rao Pasupuleti 提交于
[#5153 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 05 6月, 2010 1 次提交
-
-
由 Raimonds Simanovskis 提交于
-
- 19 5月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
[#4645 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 10 4月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 30 3月, 2010 1 次提交
-
-
由 Emilio Tagua 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-