Sha256: ea8a2b218aa5b86488f9dc808b287f7abcf4c814a3108c9cec907c89ab324a8e

Contents?: true

Size: 422 Bytes

Versions: 23

Compression:

Stored size: 422 Bytes

Contents

require_relative "middleware"
require_relative "controller"

module InertiaRails
  class Engine < ::Rails::Engine
    initializer "inertia_rails.configure_rails_initialization" do |app|
      app.middleware.use ::InertiaRails::Middleware
    end

    initializer "inertia_rails.action_controller" do
      ActiveSupport.on_load(:action_controller) do
        include ::InertiaRails::Controller
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
inertia_rails-1.12.1 lib/inertia_rails/engine.rb
inertia_rails-1.12.0 lib/inertia_rails/engine.rb
inertia_rails-1.11.1 lib/inertia_rails/engine.rb
inertia_rails-1.11.0 lib/inertia_rails/engine.rb
inertia_rails-1.10.0 lib/inertia_rails/engine.rb
inertia_rails-1.9.2 lib/inertia_rails/engine.rb
inertia_rails-1.9.1 lib/inertia_rails/engine.rb
inertia_rails-1.9.0 lib/inertia_rails/engine.rb
inertia_rails-1.8.0 lib/inertia_rails/engine.rb
inertia_rails-1.7.1 lib/inertia_rails/engine.rb
inertia_rails-1.7.0 lib/inertia_rails/engine.rb
inertia_rails-1.6.0 lib/inertia_rails/engine.rb
inertia_rails-1.5.0 lib/inertia_rails/engine.rb
inertia_rails-1.4.1 lib/inertia_rails/engine.rb
inertia_rails-1.4.0 lib/inertia_rails/engine.rb
inertia_rails-1.3.1 lib/inertia_rails/engine.rb
inertia_rails-1.3.0 lib/inertia_rails/engine.rb
inertia_rails-1.2.2 lib/inertia_rails/engine.rb
inertia_rails-1.2.1 lib/inertia_rails/engine.rb
inertia_rails-1.2.0 lib/inertia_rails/engine.rb