lib/prx_auth/rails.rb in prx_auth-rails-0.3.0 vs lib/prx_auth/rails.rb in prx_auth-rails-1.0.0
- old
+ new
@@ -1,10 +1,17 @@
require "prx_auth/rails/version"
+require "prx_auth/rails/configuration"
require "prx_auth/rails/railtie" if defined?(Rails)
+
module PrxAuth
module Rails
class << self
- attr_accessor :middleware
+ attr_accessor :configuration
+
+ def configure
+ yield configuration
+ end
end
- self.middleware = true
+
+ self.configuration = Configuration.new
end
end