Sha256: dc89dfe8ad1dd8c1a7fb62a4d2ff7d9b7326654417bcf2bfb8d49b5888913959
Contents?: true
Size: 581 Bytes
Versions: 3
Compression:
Stored size: 581 Bytes
Contents
# frozen_string_literal: true module Schneiderlein class Engine < ::Rails::Engine isolate_namespace Schneiderlein initializer 'schneiderlein.middleware' do |app| if Rails::VERSION::MAJOR < 5 app.config.middleware.insert_before \ 'ActionDispatch::ParamsParser', 'Schneiderlein::FlyCatcher' else # ActionDispatch::ParamsParser is not included in the middleware # stack anymore in Rails 5. app.config.middleware.insert_after \ ActionDispatch::Callbacks, Schneiderlein::FlyCatcher end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
schneiderlein-3.0.0 | lib/schneiderlein/engine.rb |
schneiderlein-2.0.0 | lib/schneiderlein/engine.rb |
schneiderlein-1.3.1 | lib/schneiderlein/engine.rb |