Sha256: 0f4680cf6177598f176e0dc78fc36ab7986d88bd3c23ed705643fe24020037fa

Contents?: true

Size: 466 Bytes

Versions: 8

Compression:

Stored size: 466 Bytes

Contents

require 'inertia_rails/renderer'
require 'inertia_rails/engine'

require 'patches/debug_exceptions'
require 'patches/better_errors'
require 'patches/request'

ActionController::Renderers.add :inertia do |component, options|
  InertiaRails::Renderer.new(
    component,
    self,
    request,
    response,
    method(:render),
    props: options[:props],
    view_data: options[:view_data],
  ).render
end

module InertiaRails
  class Error < StandardError; end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
inertia_rails-1.7.1 lib/inertia_rails.rb
inertia_rails-1.7.0 lib/inertia_rails.rb
inertia_rails-1.6.0 lib/inertia_rails.rb
inertia_rails-1.5.0 lib/inertia_rails.rb
inertia_rails-1.4.1 lib/inertia_rails.rb
inertia_rails-1.4.0 lib/inertia_rails.rb
inertia_rails-1.3.1 lib/inertia_rails.rb
inertia_rails-1.3.0 lib/inertia_rails.rb