aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/marshal.rb
Commit message (Collapse)AuthorAgeFilesLines
* Avoid unused captureRyuta Kamizono2016-04-051-1/+1
|
* Fix marshal with autoloading for nested class/moduleFumiaki MATSUSHIMA2016-03-281-1/+1
| | | | | | | | | #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)`
* Prevent `Marshal.load` from looping infinitelyOlek Janiszewski2016-03-111-1/+4
| | | | | | | | | | | | 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`.
* Wrong usage of 'a' in docs fixed [ci skip]Mehmet Emin İNAÇ2015-10-031-1/+1
|
* Mark some constants as nodoc and remove unneeded namespaceRafael Mendonça França2015-03-201-1/+1
|
* Use Module#prepend instead of alias_method_chainKir Shatrov2015-03-201-8/+6
| | | | | | | 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
* Fixes NoMethodError: `alias_method_chain` when requiring just ↵Andy Lindeman2013-05-121-0/+2
| | | | | | active_support/core_ext * Each file that uses `alias_method_chain` brings it in explicitly
* Remove unnecessary begin..rescue..end, use only rescueAkira Matsuda2013-01-061-13/+11
|
* Patched Marshal#load to work with constant autoloading ↵Uriel Katz2012-12-011-0/+21
(active_support/dependecies.rb) (issue #8167)