diff --git a/lib/oauth/consumer.rb b/lib/oauth/consumer.rb index bbfe6534..ea1fadfb 100644 --- a/lib/oauth/consumer.rb +++ b/lib/oauth/consumer.rb @@ -103,7 +103,9 @@ def initialize(consumer_key, consumer_secret, options = {}) @secret = consumer_secret # ensure that keys are symbols - @options = @@default_options.merge(options.transform_keys(&:to_sym)) + @options = @@default_options.merge(options.each_with_object({}) do |(key, value), opts| + opts[key.to_sym] = value + end) end # The default http method