aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/marshal.rb
Commit message (Collapse)AuthorAgeFilesLines
* Missing require AS/core_ext/string/inflectionsAkira Matsuda2019-08-021-0/+2
|
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* add optional second argument to ActiveSupport core extension for ↵Jeff Latz2017-02-241-2/+2
| | | | Marshal#load so it can take a proc
* 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)