Module: Barista::Integration::Rails2
- Defined in:
- lib/barista/integration/rails2.rb
Class Method Summary collapse
Class Method Details
.setup ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/barista/integration/rails2.rb', line 5 def self.setup ActionController::Dispatcher.middleware.tap do |middleware| middleware.use Barista::Filter if Barista.add_filter? middleware.use Barista::Server::Proxy end Barista.setup_defaults ActionController::Base.helper Barista::Helpers end |