Skip to content
This repository
Browse code

try to fix 1.8.7 issue with interning symbols

  • Loading branch information...
commit 53aa9b641bdd881e0a6b51de09c19f0ff610c390 1 parent 199828f
Russell Norris authored January 03, 2013
3  lib/stringex/configuration/configurator.rb
@@ -12,10 +12,11 @@ def initialize(klass)
12 12
       end
13 13
 
14 14
       def define_instance_method_for_configuration_wrapper(name)
  15
+        name = name.respond_to?(:intern) ? name.intern : name
15 16
         (class << self; self; end).instance_eval do
16 17
           define_method("#{name}=") do |value|
17 18
             customizations = klass.send(:system_wide_customizations)
18  
-            customizations[name.intern] = value
  19
+            customizations[name] = value
19 20
           end
20 21
         end
21 22
       end

0 notes on commit 53aa9b6

Please sign in to comment.
Something went wrong with that request. Please try again.