Sha256: e8f4418a366b64465a9e7779ec1fa0fe36d13e42fc9f67c53711f27d3c79bf7e
Contents?: true
Size: 499 Bytes
Versions: 3
Compression:
Stored size: 499 Bytes
Contents
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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
barista-1.0.0 | lib/barista/integration/sinatra.rb |
barista-0.7.0.pre3 | lib/barista/integration/sinatra.rb |
barista-0.7.0.pre2 | lib/barista/integration/sinatra.rb |