- 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 提交于
-
- 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 2 次提交
-
-
由 Emilio Tagua 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Ernie Miller 提交于
[#765 state:committed] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 28 3月, 2010 1 次提交
-
-
由 Rizwan Reza 提交于
-
- 09 3月, 2010 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 10 8月, 2009 1 次提交
-
-
由 Arthur Zapparoli 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
- 07 8月, 2009 1 次提交
-
-
由 Raimonds Simanovskis 提交于
Oracle stores '' string as NULL Oracle cannot have identifiers larger than 30 characters added missing fixtures to test setup method
-
- 16 7月, 2009 1 次提交
-
-
由 Szymon Nowak 提交于
[#765 state:committed] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 12 3月, 2009 1 次提交
-
-
由 Will Bryant 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
- 09 3月, 2009 1 次提交
-
-
由 Jeremy Kemper 提交于
[#1617 state:resolved]
-
- 07 3月, 2009 1 次提交
-
-
由 Adam Cooper 提交于
Ensure belongs_to association with a counter cache in name spaced model works [#1678 state:resolved] Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
- 27 2月, 2009 1 次提交
-
-
由 David Heinemeier Hansson 提交于
-
- 14 10月, 2008 1 次提交
-
-
由 Pratik Naik 提交于
Ensure methods called on association proxies respect access control. [#1083 state:resolved] [Adam Milligan, Pratik]
-
- 10 10月, 2008 1 次提交
-
-
由 Michael Koziarski 提交于
There are several situations it doesn't cater for, and the inconsistency isn't worth blocking 2.2.
-
- 13 9月, 2008 1 次提交
-
-
由 Jon Leighton 提交于
Support for updating a belongs to association from the foreign key (without saving and reloading the record) Signed-off-by: NMichael Koziarski <michael@koziarski.com> [#142 state:committed]
-
- 01 8月, 2008 1 次提交
-
-
由 Tarmo Tänav 提交于
Signed-off-by: NJoshua Peek <josh@joshpeek.com>
-
- 11 6月, 2008 1 次提交
-
-
由 Jan De Poorter 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
- 01 6月, 2008 2 次提交
-
-
由 Tim Harper 提交于
belongs_to polymorphic association assignments update the foreign_id and foreign_type fields regardless of whether the record being assigned is new or not. fixes the following scenarios: * I have validates_inclusion_of on the type field for a polymorphic belongs_to association. I assign a new record to the model's polymorphic relationship of the proper type. validation fails because the type field has not been updated. * I replace the value for a ppolymorphic association to a new record of another class. The type field still says its the previous class, and the id field points to the previous record as well. [#191 state:closed]
-
由 Tim Harper 提交于
belongs_to polymorphic association assignments update the foreign_id and foreign_type fields regardless of whether the record being assigned is new or not. fixes the following scenarios: * I have validates_inclusion_of on the type field for a polymorphic belongs_to association. I assign a new record to the model's polymorphic relationship of the proper type. validation fails because the type field has not been updated. * I replace the value for a ppolymorphic association to a new record of another class. The type field still says its the previous class, and the id field points to the previous record as well.
-
- 24 5月, 2008 1 次提交
-
-
由 josevalim 提交于
Signed-off-by: NMichael Koziarski <michael@koziarski.com> [#241 state:resolved]
-
- 20 5月, 2008 1 次提交
-
-
由 Jeremy Kemper 提交于
-