- 27 12月, 2010 2 次提交
-
-
由 Jon Leighton 提交于
Associations: DRY up the code which is generating conditions, and make it all use arel rather than SQL strings
-
由 Jon Leighton 提交于
-
- 21 12月, 2010 4 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
has_many associations with :dependent => :delete_all should update the counter cache when deleting records
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
Specify insert_record with NotImplementedError in AssociationCollection, to indicate that subclasses should implement it. Also add save_record to reduce duplication.
-
- 03 12月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 25 11月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 24 11月, 2010 4 次提交
-
-
由 Aaron Patterson 提交于
-
由 Emilio Tagua 提交于
-
由 Emilio Tagua 提交于
-
由 Emilio Tagua 提交于
-
- 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 6 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Santiago Pastorino 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 05 8月, 2010 1 次提交
-
-
由 Xavier Noria 提交于
-
- 29 6月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 17 6月, 2010 1 次提交
-
-
由 Rizwan Reza 提交于
-
- 17 3月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
Signed-off-by: Nwycats <wycats@gmail.com>
-
- 17 1月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 02 1月, 2010 1 次提交
-
-
由 Pratik Naik 提交于
-
- 26 12月, 2009 1 次提交
-
-
由 Pratik Naik 提交于
-
- 14 11月, 2009 2 次提交
-
-
由 Jeremy Kemper 提交于
Revert "Split arel_table into method to get a relation and another to memoize the default relation." This reverts commit bd517908.
-
由 Jeremy Kemper 提交于
-
- 03 11月, 2009 1 次提交
-
-
由 Jeremy Kemper 提交于
-
- 19 8月, 2009 1 次提交
-
-
由 Emilio Tagua 提交于
-
- 10 8月, 2009 1 次提交
-
-
由 Gabe da Silveira 提交于
[#1196 state:committed] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 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>
-
- 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>
-
- 27 2月, 2009 1 次提交
-
-
由 David Heinemeier Hansson 提交于
-
- 22 10月, 2008 1 次提交
-
-
由 Pratik Naik 提交于
rake doc:guides The rake task will generate guides inside doc/guides directory of your application. Open index.html to browse.
-
- 17 10月, 2008 1 次提交
-
-
由 Xavier Noria 提交于
-
- 17 9月, 2008 1 次提交
-
-
由 Michael Koziarski 提交于
-
- 04 9月, 2008 1 次提交
-
-
由 Pratik Naik 提交于
-