Sha256: fe8e9c91fef83978e9c493b6b531fb3512337c1707d99bd29bfe919032553aae

Contents?: true

Size: 641 Bytes

Versions: 8

Compression:

Stored size: 641 Bytes

Contents

module Barista
  module Integration
    module Rails3    
      class Railtie < Rails::Railtie
        
        rake_tasks do
          load Barista.library_root.join('barista/tasks/barista.rake').to_s
        end

        initializer 'barista.wrap_filter' do
          config.app_middleware.use Barista::Filter if Barista.add_filter?
          config.app_middleware.use Barista::Server::Proxy
        end

        initializer 'barista.defaults' do
          Barista.setup_defaults
        end

        initializer 'barista.helpers' do
          ActionController::Base.helper Barista::Helpers
        end
        
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
barista-1.3.0 lib/barista/integration/rails3.rb
barista-1.2.1 lib/barista/integration/rails3.rb
barista-1.2.0 lib/barista/integration/rails3.rb
barista-1.1.0 lib/barista/integration/rails3.rb
barista-1.1.0.pre1 lib/barista/integration/rails3.rb
barista-1.0.0 lib/barista/integration/rails3.rb
barista-0.7.0.pre3 lib/barista/integration/rails3.rb
barista-0.7.0.pre2 lib/barista/integration/rails3.rb