Permalink
Browse files

try to fix 1.8.7 issue with interning symbols

  • Loading branch information...
1 parent 199828f commit 53aa9b641bdd881e0a6b51de09c19f0ff610c390 @rsl committed Jan 3, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/stringex/configuration/configurator.rb
@@ -12,10 +12,11 @@ def initialize(klass)
end
def define_instance_method_for_configuration_wrapper(name)
+ name = name.respond_to?(:intern) ? name.intern : name
(class << self; self; end).instance_eval do
define_method("#{name}=") do |value|
customizations = klass.send(:system_wide_customizations)
- customizations[name.intern] = value
+ customizations[name] = value
end
end
end

0 comments on commit 53aa9b6

Please sign in to comment.