diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-04-05 22:39:14 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-04-05 22:39:14 +0900 |
commit | a05fd2d4a8fbeaef8ac5cb82068235f855ae8039 (patch) | |
tree | 15a8805d3c643386fe813e7bce45e43a6de1ce3f /activesupport/lib | |
parent | 106851c445c8a0b9358bfa4312f3459b870e775b (diff) | |
download | rails-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.rb | 2 |
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 |