Sha256: e8f86ada36aa8168d8370463143e3d85bbd4c7126565c5dfdb25f318a4da3b36

Contents?: true

Size: 529 Bytes

Versions: 7

Compression:

Stored size: 529 Bytes

Contents

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

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

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

module InertiaRails
  class Error < StandardError; end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
inertiax_rails-2.0.0 lib/inertia_rails.rb
inertia_rails-3.2.0 lib/inertia_rails.rb
inertia_rails-3.1.4 lib/inertia_rails.rb
inertia_rails-3.1.3 lib/inertia_rails.rb
inertia_rails-3.1.2 lib/inertia_rails.rb
inertia_rails-3.1.1 lib/inertia_rails.rb
inertia_rails-3.1.0 lib/inertia_rails.rb