lib/wine_bouncer/configuration.rb in wine_bouncer-0.5.0 vs lib/wine_bouncer/configuration.rb in wine_bouncer-0.5.1
- old
+ new
@@ -3,18 +3,14 @@
class << self
attr_accessor :configuration
end
class Configuration
-
attr_accessor :auth_strategy
attr_accessor :defined_resource_owner
+ attr_writer :auth_strategy
- def auth_strategy=(strategy)
- @auth_strategy= strategy
- end
-
def auth_strategy
@auth_strategy || :default
end
def require_strategies
@@ -40,15 +36,15 @@
def disable_block
@disable_block || ->() { false }
end
end
- def self.configuration
+ def self.configuration
@configuration || fail(Errors::UnconfiguredError.new)
end
def self.configuration=(config)
- @configuration= config
+ @configuration = config
@configuration.require_strategies
end
###
# Configure block.