mirror of
https://github.com/omniauth/omniauth.git
synced 2022-11-09 12:31:49 -05:00
if
modifier to return {}
This commit is contained in:
parent
62e0cf90c5
commit
494cf80861
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,8 @@ module OmniAuth
|
|||
# Returns an inherited set of default options set at the class-level
|
||||
# for each strategy.
|
||||
def default_options
|
||||
existing = superclass.default_options if superclass.respond_to?(:default_options)
|
||||
# existing = superclass.default_options if superclass.respond_to?(:default_options)
|
||||
existing = superclass.respond_to?(:default_options) ? superclass.default_options : {}
|
||||
@default_options ||= OmniAuth::Strategy::Options.new(existing)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue