Sha256: 2030a586d932f5063d3ea5381af9992316361ca1f1c7e2c6e7f5b06a5ad4c5b1
Contents?: true
Size: 875 Bytes
Versions: 5
Compression:
Stored size: 875 Bytes
Contents
# Configure Rails 3.1 module Remotipart module Rails class Engine < ::Rails::Engine initializer "remotipart.view_helper" do ActionView::Base.send :include, RequestHelper ActionView::Base.send :include, ViewHelper end initializer "remotipart.controller_helper" do ActionController::Base.send :include, RequestHelper ActionController::Base.send :include, RenderOverrides end initializer "remotipart.include_middelware" do if ::Rails.version >= '5' # Rails 5 no longer instantiates ActionDispatch::ParamsParser # https://github.com/rails/rails/commit/a1ced8b52ce60d0634e65aa36cb89f015f9f543d config.app_middleware.use Middleware else config.app_middleware.insert_after ActionDispatch::ParamsParser, Middleware end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems