1
0
Fork 0
mirror of https://github.com/omniauth/omniauth.git synced 2022-11-09 12:31:49 -05:00

Override dup instead of initialize_copy

Makes the `@options.dup` changes compatible with Ruby 1.8.7
This commit is contained in:
Mike Dillon 2015-11-12 21:25:47 -08:00
parent 778d088cc6
commit fa868a0f0d

View file

@ -479,15 +479,16 @@ module OmniAuth
OmniAuth.config.on_failure.call(env)
end
def dup
super.tap do
@options = @options.dup
end
end
class Options < Hashie::Mash; end
protected
def initialize_copy(orig)
super
@options = @options.dup
end
def merge_stack(stack)
stack.inject({}) do |a, e|
a.merge!(e)