- 27 12月, 2010 3 次提交
-
-
由 Jon Leighton 提交于
Use conditionals and implicit returns rather than explicit returns and postfix ifs (it's easier to read)
-
由 Jon Leighton 提交于
Remove has_cached_counter? and cached_counter_attribute_name from HasManyThroughAssociation, as the exact same methods are inherited from HasManyAssociation
-
由 Jon Leighton 提交于
Use the through association proxy for operations on the through record, so that those operations are automatically scoped and therefore construct_join_attributes does not need to use construct_owner_attributes.
-
- 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.
-
- 21 12月, 2010 2 次提交
-
-
由 Jon Leighton 提交于
Delete create, create! and create_record from HasManyThroughAssociation in exchange for more generic versions in AssociationCollection
-
由 Jon Leighton 提交于
Specify insert_record with NotImplementedError in AssociationCollection, to indicate that subclasses should implement it. Also add save_record to reduce duplication.
-
- 16 12月, 2010 3 次提交
-
-
由 Jon Leighton 提交于
-
由 Aaron Patterson 提交于
-
由 Jon Leighton 提交于
-
- 15 12月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 28 11月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 15 11月, 2010 2 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Jason Cheow 提交于
Fix bug where size of through association is not correct after adding a has_many association (occurs only before main object has been reloaded). [#5968 state:committed] Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 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.
-
- 14 8月, 2010 2 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
- 03 8月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
-
- 17 6月, 2010 1 次提交
-
-
由 Rizwan Reza 提交于
-
- 28 3月, 2010 1 次提交
-
-
由 Xavier Noria 提交于
-
- 17 1月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 16 1月, 2010 1 次提交
-
-
由 Pratik Naik 提交于
-
- 11 8月, 2009 3 次提交
-
-
由 Pratik Naik 提交于
-
由 Pratik Naik 提交于
-
由 Pratik Naik 提交于
-
- 10 8月, 2009 2 次提交
-
-
由 railsbob 提交于
[#2934 state:committed] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
由 railsbob 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
- 09 8月, 2009 1 次提交
-
-
由 Pratik Naik 提交于
-
- 01 7月, 2009 1 次提交
-
-
由 Pratik Naik 提交于
Revert "Revert "Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]"" This reverts commit 80f1f863. The feature doesn't work on Postgres, so don't test it on Postgres. Also, Postgres compatibility is irrelevant to the ticket/patch in question.
-
- 23 6月, 2009 1 次提交
-
-
Revert "Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]" This reverts commit 4851ca9e. The tests do not pass for postgresql.
-
- 22 6月, 2009 1 次提交
-
-
由 Patrick Joyce 提交于
Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved] Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
- 13 6月, 2009 1 次提交
-
-
由 Adam Milligan 提交于
[#1642 state:committed] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 11 6月, 2009 1 次提交
-
-
由 Emilio Tagua 提交于
-
- 19 5月, 2009 1 次提交
-
-
由 Luca Guidi 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
- 05 5月, 2009 1 次提交
-
-
由 Murray Steele 提交于
You can now add an :inverse_of option to has_one, has_many and belongs_to associations. This is best described with an example: class Man < ActiveRecord::Base has_one :face, :inverse_of => :man end class Face < ActiveRecord::Base belongs_to :man, :inverse_of => :face end m = Man.first f = m.face Without :inverse_of m and f.man would be different instances of the same object (f.man being pulled from the database again). With these new :inverse_of options m and f.man are the same in memory instance. Currently :inverse_of supports has_one and has_many (but not the :through variants) associations. It also supplies inverse support for belongs_to associations where the inverse is a has_one and it's not a polymorphic. Signed-off-by: NMurray Steele <muz@h-lame.com> Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 09 3月, 2009 1 次提交
-
-
由 Jim Remsik and Tim Pope 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
- 07 3月, 2009 1 次提交
-
-
由 Adam Milligan 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
- 27 2月, 2009 1 次提交
-
-
由 David Heinemeier Hansson 提交于
-
- 21 12月, 2008 1 次提交
-
-
由 Karthik Krishnan 提交于
Signed-off-by: NFrederick Cheung <frederick.cheung@gmail.com>
-
- 05 10月, 2008 1 次提交
-
-
由 Zach Dennis 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-