lib/omniauth-artsy/config.rb in omniauth-artsy-0.2.1 vs lib/omniauth-artsy/config.rb in omniauth-artsy-0.2.2
- old
+ new
@@ -12,10 +12,18 @@
reset
end
class << self
def configure
- block_given? ? yield(Config) : Config
+ if block_given?
+ yield(Config)
+ reconfigure_strategy
+ end
+ Config
+ end
+
+ def reconfigure_strategy
+ Strategies::Artsy.configure
end
def config
Config
end