- 28 3月, 2011 1 次提交
-
-
由 Sebastian Martinez 提交于
This reverts commit 45c233ef. Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 26 3月, 2011 1 次提交
-
-
由 Sebastian Martinez 提交于
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 14 2月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Add interpolation of association conditions back in, in the form of proc { ... } rather than instance_eval-ing strings
-
- 08 2月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Correctly update counter caches on deletion for has_many :through [#2824 state:resolved]. Also fixed a bunch of other counter cache bugs in the process, as once I fixed this one others started appearing like nobody's business.
-
- 30 1月, 2011 4 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
AssociationCollection#to_ary should definitely dup the target! Also changed #replace which was previously incorrect, but the test passed due to the fact that to_a was not duping.
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
We shouldn't be using scoped.scoping { ... } to build associated records, as this can affect validations/callbacks/etc inside the record itself [#6252 state:resolved]
-
- 12 1月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 21 12月, 2010 1 次提交
-
-
由 Jon Leighton 提交于
has_many associations with :dependent => :delete_all should update the counter cache when deleting records
-
- 23 11月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 17 11月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
reloading an association will properly set attributes of instantiated objects. Thanks Brian Palmer [#5802 state:resolved]
-
- 16 11月, 2010 2 次提交
-
-
由 Neeraj Singh 提交于
if association is already loaded and if a find operation is performed on the already loaded association list with an empty hash then do not perform another sql [#5972 state:resolved]
-
由 Aaron Patterson 提交于
-
- 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>
-
- 01 10月, 2010 1 次提交
-
-
由 Marcelo Giorgi 提交于
AssociationCollection#include? working properly for objects added with build method [#3472 state:resolved]
-
- 29 9月, 2010 1 次提交
-
-
由 Marcelo Giorgi 提交于
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 01 9月, 2010 1 次提交
-
-
由 Pratik Naik 提交于
-
- 20 8月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
While creating a new record using has_many create method default scope of child should be respected. author.posts.create should take into account default_scope defined on post. [#3939: state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 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
-
- 28 7月, 2010 1 次提交
-
-
由 Jon Buda 提交于
fixed joining of attributes when using find_or_create_by with multiple attributes through an association Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 15 7月, 2010 1 次提交
-
-
由 Pratik Naik 提交于
-
- 14 7月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
count method should not take options if it is operated on has_many association which has finder_sql or counter_sql [#2395 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 13 7月, 2010 1 次提交
-
-
由 Subba Rao Pasupuleti 提交于
[#5076 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 09 7月, 2010 1 次提交
-
-
由 Mislav Marohnić 提交于
Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 30 6月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 05 6月, 2010 1 次提交
-
-
由 Raimonds Simanovskis 提交于
(as otherwise was failing under JRuby and oracle_enhanced adapter)
-
- 19 5月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
[#4645 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 15 5月, 2010 1 次提交
-
-
由 Diego Algorta 提交于
Fix for get_ids when including a belongs_to association on a has_many association [#2896 state:resolved] Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
- 04 4月, 2010 1 次提交
-
-
由 Andrew White 提交于
[#2627 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>
-
- 13 12月, 2009 2 次提交
-
-
由 Joshua Peek 提交于
-
由 Joshua Peek 提交于
I think it may of broke the build. Lets see. This reverts commit 49e943c4. Conflicts: activerecord/test/cases/associations/has_many_associations_test.rb
-
- 12 12月, 2009 1 次提交
-
-
由 John Pignata 提交于
Due to the ordering of the returning result set, the test fails under the postgresql adapter. Order results by id prior to checking the first item [#3542 state:committed] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 03 12月, 2009 1 次提交
-
-
由 Mat Brown 提交于
In the current stable, ActiveRecord::Associations::AssociationProxy#method_missing calls yield() if a block is given, causing the block to always be evaluated in its calling context. However, in the case of instance_eval, correct behavior requires that the block be passed directly to the @target, rather than being evaluated inside a different block. Incidentally, this also simplifies the code slightly. [#3412 state:committed] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 10 11月, 2009 1 次提交
-
-
由 Matt Jones 提交于
Signed-off-by: NMichael Koziarski <michael@koziarski.com>
-
- 08 9月, 2009 1 次提交
-
-
由 José Valim 提交于
Changed ActiveRecord to use new callbacks and speed up observers by only notifying events that are actually being consumed. Signed-off-by: NJoshua Peek <josh@joshpeek.com>
-
- 10 8月, 2009 2 次提交
-
-
由 Jeremy Kemper 提交于
-
由 Gabe da Silveira 提交于
[#1196 state:committed] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-