7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/assets/compiler/plugin/rails.rb', line 7
def self.extend!
if defined?(ActionController::Metal)
require 'assets/compiler/plugin/rack'
::Rails::Application.config.middleware.use(Assets::Compiler::Plugin::Rack)
elsif defined?(ActionController::Dispatcher) && defined?(ActionController::Dispatcher.middleware)
require 'assets/compiler/plugin/rack'
ActionController::Dispatcher.middleware.use(Assets::Compiler::Plugin::Rack)
else
raise StandardError, 'This version of rails is not supported'
end
end
|