From a05fd2d4a8fbeaef8ac5cb82068235f855ae8039 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Tue, 5 Apr 2016 22:39:14 +0900 Subject: Avoid unused capture --- activesupport/lib/active_support/core_ext/marshal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/core_ext/marshal.rb b/activesupport/lib/active_support/core_ext/marshal.rb index 5875ae5f71..edfc8296fe 100644 --- a/activesupport/lib/active_support/core_ext/marshal.rb +++ b/activesupport/lib/active_support/core_ext/marshal.rb @@ -3,7 +3,7 @@ module ActiveSupport def load(source) super(source) rescue ArgumentError, NameError => exc - if exc.message.match(%r|undefined class/module (.+?)(::)?\z|) + if exc.message.match(%r|undefined class/module (.+?)(?:::)?\z|) # try loading the class/module loaded = $1.constantize -- cgit v1.2.3