- 23 4月, 2011 1 次提交
-
-
由 Ken Collins 提交于
The #substitute_at gets an ActiveRecord::ConnectionAdapters::Column in #insert to match replacement in #exec_query.
-
- 22 4月, 2011 2 次提交
-
-
由 Ken Collins 提交于
-
由 Aaron Patterson 提交于
-
- 19 4月, 2011 3 次提交
-
-
由 José Valim 提交于
-
由 Jon Leighton 提交于
Bring back support for passing a callable object to the default_scope macro. You can also just use a block.
-
由 Jon Leighton 提交于
Un-deprecate using 'default_scope' as a macro, but if you are calling the macro multiple times that will give deprecation warnings, and in 3.2 we will simply overwrite the default scope when you call the macro multiple times.
-
- 18 4月, 2011 4 次提交
-
-
由 Jon Leighton 提交于
Fix test_load_save in test/cases/binary_test.rb (thanks @tenderlove for actually working out how to fix it)
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
Bring back some bits of documentation for scopes which were removed as part of the reversion in 256b363e
-
由 Jon Leighton 提交于
Revert "Deprecate defining scopes with a callable (lambda, proc, etc) via the scope class method. Just define a class method yourself instead." This reverts commit f0e198bf. Conflicts: activerecord/test/models/post.rb
-
- 17 4月, 2011 1 次提交
-
-
由 Jason Weathered 提交于
The identity map cache prevents us from seeing the DB formatted strings.
-
- 15 4月, 2011 13 次提交
-
-
由 Jon Leighton 提交于
Return nil from read_attribute(:foo) if 'foo' is not present in the @attributes hash, but the _foo method has been defined. This brings the behaviour into line with the 3-0-stable branch and the master branch before 93641ed6 (there were previously no assertions about this which is why the change slipped through). Note that actually calling the 'foo' method will still raise an error if the attribute is not present.
-
由 Jon Leighton 提交于
Undo performances regressions I introduced in bbe0a507 and add test for an edge case. Add comments to explain the intent of the code.
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
Remove unnecessary code from define_read_method and add assertion to make sure the underscored version is actually generated
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Jon Leighton 提交于
Extract the constraint-building for joins in JoinAssociation into a separate method to make it easy to change/override (requested by Ernie Miller so that MetaWhere can add to it easily)
-
- 14 4月, 2011 3 次提交
-
-
由 Stian Grytøyr 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 13 4月, 2011 7 次提交
-
-
由 Prem Sichanugrist 提交于
After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now. It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
-
由 Aaron Patterson 提交于
-
由 Jon Leighton 提交于
Deprecate defining scopes with a callable (lambda, proc, etc) via the scope class method. Just define a class method yourself instead.
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
Evaluate default scopes at the last possible moment in order to avoid problems with default scopes getting included into other scopes and then being unable to remove the default part via unscoped.
-
由 Jon Leighton 提交于
Deprecated support for passing hashes and relations to default_scope, in favour of defining a 'default_scope' class method in the model. See the CHANGELOG for more details.
-
由 Jon Leighton 提交于
Removing the scope-caching which happens on association proxies, because the query is already cached by the query cacher. For formalised proof see http://www.youtube.com/watch?v=wDefXLb-FDs
-
- 12 4月, 2011 6 次提交
-
-
由 Aaron Patterson 提交于
-
由 David Heinemeier Hansson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-