| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Marshal#load so it can take a proc
|
| |
|
|
|
|
|
|
|
|
|
| |
#24150 break autoloading for nested class/module.
There is test for nested class but it doesn't work correctly.
Following code will autoload `ClassFolder::ClassFolderSubclass` before `Marshal.load`:
`assert_kind_of ClassFolder::ClassFolderSubclass, Marshal.load(dumped)`
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix a bug in `Marshal.load` that caused it to loop indefinitely when
trying to autoload a constant that resolved to a different name.
This could occur when marshalling an ActiveRecord 4.0 object (e.g. into
memcached) and then trying to unmarshal it with Rails 4.2. The
marshalled payload contains a reference to
`ActiveRecord::ConnectionAdapters::Mysql2Adapter::Column`, which in
Rails 4.2 resolves to
`ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::Column`.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Thanks @fbernier for suggestion! <3
At this moment we can use Module#prepend in all all cases
except of Range because of the bug [1] in MRI 2.2
[1] https://bugs.ruby-lang.org/issues/10847
|
|
|
|
|
|
| |
active_support/core_ext
* Each file that uses `alias_method_chain` brings it in explicitly
|
| |
|
|
(active_support/dependecies.rb) (issue #8167)
|