1
0
Fork 0
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:
Tom Milewski 2017-02-12 01:31:09 -05:00
parent 62e0cf90c5
commit 494cf80861
No known key found for this signature in database
GPG key ID: 0C45B110F8B40F20

View file

@ -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