lib/barista/integration/sinatra.rb in barista-1.0.0 vs lib/barista/integration/sinatra.rb in barista-1.1.0.pre1

- old
+ new

@@ -1,23 +1,23 @@ module Barista module Integration module Sinatra - + def self.registered(app) app.configure do |inner_app| setup_defaults inner_app inner_app.use Barista::Filter if Barista.add_filter? inner_app.use Barista::Server::Proxy Barista.setup_defaults end - + end - + def self.setup_defaults(app) Barista.configure do |c| c.env = app.environment.to_s end end - + end end end \ No newline at end of file