Sha256: fb49984cb6f081a41794186456d5c328416645e00878176189538c60caeba691
Contents?: true
Size: 473 Bytes
Versions: 5
Compression:
Stored size: 473 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
5 entries across 5 versions & 1 rubygems