mirror of
https://github.com/omniauth/omniauth.git
synced 2022-11-09 12:31:49 -05:00
Update AuthHash#regular_writer to ensure that #info is a Hash
This commit is contained in:
parent
1cc1cf4b28
commit
ed89156612
2 changed files with 6 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ module OmniAuth
|
|||
end
|
||||
|
||||
def regular_writer(key, value)
|
||||
if key.to_s == 'info' && !value.is_a?(InfoHash)
|
||||
if key.to_s == 'info' && value.is_a?(::Hash) && !value.is_a?(InfoHash)
|
||||
value = InfoHash.new(value)
|
||||
end
|
||||
super
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue