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:
parent
778d088cc6
commit
fa868a0f0d
1 changed files with 6 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue