From 494cf80861aaea50d942c6afe9a523657eb9d8a3 Mon Sep 17 00:00:00 2001 From: Tom Milewski Date: Sun, 12 Feb 2017 01:31:09 -0500 Subject: [PATCH] `if` modifier to return `{}` --- lib/omniauth/strategy.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/omniauth/strategy.rb b/lib/omniauth/strategy.rb index 4dfc791..3de51fa 100644 --- a/lib/omniauth/strategy.rb +++ b/lib/omniauth/strategy.rb @@ -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