aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-04-05 23:55:51 -0300
committerRafael França <rafaelmfranca@gmail.com>2016-04-05 23:55:51 -0300
commite2df1c6d2aa1dd667c6c1be25d5c7f7d69f293fa (patch)
treef6ff6a24449497cf38ec6a3ed93e68c0d6df14b3 /activesupport
parent9f6bb612799b6ede0212ab0f8d9176a1577bb75c (diff)
parenta05fd2d4a8fbeaef8ac5cb82068235f855ae8039 (diff)
downloadrails-e2df1c6d2aa1dd667c6c1be25d5c7f7d69f293fa.tar.gz
rails-e2df1c6d2aa1dd667c6c1be25d5c7f7d69f293fa.tar.bz2
rails-e2df1c6d2aa1dd667c6c1be25d5c7f7d69f293fa.zip
Merge pull request #24433 from kamipo/avoid_unused_capture
Avoid unused capture
Diffstat (limited to 'activesupport')
-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