aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-04-05 22:39:14 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-04-05 22:39:14 +0900
commita05fd2d4a8fbeaef8ac5cb82068235f855ae8039 (patch)
tree15a8805d3c643386fe813e7bce45e43a6de1ce3f /activesupport/lib
parent106851c445c8a0b9358bfa4312f3459b870e775b (diff)
downloadrails-a05fd2d4a8fbeaef8ac5cb82068235f855ae8039.tar.gz
rails-a05fd2d4a8fbeaef8ac5cb82068235f855ae8039.tar.bz2
rails-a05fd2d4a8fbeaef8ac5cb82068235f855ae8039.zip
Avoid unused capture
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/marshal.rb2
1 files changed, 1 insertions, 1 deletions
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