Sha256: 032deeca5e0dff32a67e31851a15de7bc336c27cc893ef3db0465775c0465b34
Contents?: true
Size: 483 Bytes
Versions: 6
Compression:
Stored size: 483 Bytes
Contents
require 'cloudfuji' if defined?(Rails) && Rails::VERSION::MAJOR == 3 require 'rails/engine' module Cloudfuji class Engine < Rails::Engine initializer "cloudfuji.add_middleware" do |app| # Only include our middleware if its on our platform unless ENV['CLOUDFUJI_APP'].nil? app.middleware.use Cloudfuji::Middleware end end end end else # Rails 2 handling Rails.configuration.middleware.use 'Cloudfuji::Middleware' end
Version data entries
6 entries across 6 versions & 1 rubygems