lib/rack/insight/app.rb in rack-insight-0.5.27 vs lib/rack/insight/app.rb in rack-insight-0.5.28
- old
+ new
@@ -43,9 +43,14 @@
options[:on_initialize].call(self)
end
end
attr_accessor :panels
+ # allow access to configuration settings directly through the app object!
+ def config
+ Rack::Insight::Config.config
+ end
+
def call(env)
@original_request = Rack::Request.new(env)
if insight_active?
@env = env
self.options = @default_options