lib/rage-rb.rb in rage-rb-0.4.0 vs lib/rage-rb.rb in rage-rb-0.5.0
- old
+ new
@@ -20,12 +20,13 @@
def self.config
@config ||= Rage::Configuration.new
end
- def self.configure
- yield(config)
+ def self.configure(&)
+ config.instance_eval(&)
+ config.__finalize
end
def self.env
@__env ||= ENV["RAGE_ENV"] || ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development"
end
@@ -34,9 +35,13 @@
[:default, Rage.env.to_sym]
end
def self.root
@root ||= Pathname.new(".").expand_path
+ end
+
+ def self.logger
+ @logger ||= config.logger
end
module Router
module Strategies
end