Blame SOURCES/rubygem-activesupport-5.0.1-duplicable-symbol.patch

72d67b
diff --git a/activesupport/lib/active_support/core_ext/object/duplicable.rb b/activesupport/lib/active_support/core_ext/object/duplicable.rb
72d67b
index d4bf8ce..58045d5 100644
72d67b
--- a/activesupport/lib/active_support/core_ext/object/duplicable.rb
72d67b
+++ b/activesupport/lib/active_support/core_ext/object/duplicable.rb
72d67b
@@ -73,7 +73,8 @@ def duplicable?
72d67b
 
72d67b
 class Symbol
72d67b
   begin
72d67b
-    :symbol.dup
72d67b
+    :symbol.dup # Ruby 2.4.x.
72d67b
+    'symbol_from_string'.to_sym.dup # Some symbols can't `dup` in Ruby 2.4.0.
72d67b
   rescue TypeError
72d67b
 
72d67b
     # Symbols are not duplicable: