- 31 8月, 2016 14 次提交
-
-
由 Sean Griffin 提交于
This was almost every case where we are overriding `respond_to?` in a way that mirrors a parallel implementation of `method_missing`. There is one remaining case in Active Model that should probably do the same thing, but had a sufficiently strange implementation that I want to investigate it separately. Fixes #26333.
-
由 Richard Schneeman 提交于
Make public asset use explicit
-
由 Sean Griffin 提交于
Use splat `options` hash for `has_and_belongs_to_many`
-
由 Sean Griffin 提交于
Add `Type.default_value` and use it everywhere for internal
-
由 Sean Griffin 提交于
If a parent association was accessed in an `after_find` or `after_initialize` callback, it would always end up loading the association, and then immediately overwriting the association we just loaded. If this occurred in a way that the parent's `current_scope` was set to eager load the child, this would result in an infinite loop and eventually overflow the stack. For records that are created with `.new`, we have a mechanism to perform an action before the callbacks are run. I've introduced the same code path for records created with `instantiate`, and updated all code which sets inverse instances on newly loaded associations to use this block instead. Fixes #26320.
-
由 Guillermo Iguaran 提交于
Refactor remove duplication.
-
由 Santosh Wadghule 提交于
-
由 schneems 提交于
-
由 schneems 提交于
-
由 Jon Moss 提交于
[ci skip] Broken links in documentation fix
-
由 Rasmus Kjellberg 提交于
-
由 Matthew Draper 提交于
Don't unnecessarily load a belongs_to when saving.
-
由 Jon Moss 提交于
Update typo & Make explanation more clear
-
由 Shia 提交于
-
- 30 8月, 2016 26 次提交
-
-
由 schneems 提交于
-
由 Andrew White 提交于
Fix performance regression in `TimeWithZone#to_time`
-
由 Aaron Patterson 提交于
Allow `send_file` to declare a charset
-
由 Jon Moss 提交于
-
由 Jon Moss 提交于
-
由 Jon Moss 提交于
Removed my patch in favor of @tenderlove's less invasive approach. [Aaron Patterson & Jon Moss]
-
由 schneems 提交于
-
由 schneems 提交于
-
由 schneems 提交于
-
由 schneems 提交于
-
由 schneems 提交于
-
由 schneems 提交于
-
由 schneems 提交于
Is this usage correct? cc/ @prathamesh-sonpatki
-
由 schneems 提交于
-
由 schneems 提交于
-
由 schneems 提交于
-
由 schneems 提交于
-
由 schneems 提交于
-
由 schneems 提交于
-
由 schneems 提交于
-
由 schneems 提交于
-
由 schneems 提交于
-
由 schneems 提交于
Adding all those `public_*` methods is a bit heavy handed, we can change the API to instead use `public_folder: true`. Change was pretty easy since it was already implemented that way.
-
由 schneems 提交于
-
由 schneems 提交于
-
由 schneems 提交于
-