Sha256: 44c4a77ad76f6e3d98b21cff5713d9585b47cddc5a6f6f83e7126de916a7f374

Contents?: true

Size: 311 Bytes

Versions: 1

Compression:

Stored size: 311 Bytes

Contents

# frozen_string_literal: true

require "jbuilder"
require_relative "renderer"

Mime::Type.register_alias "application/json", :inertia

ActionController::Renderers.add :inertia do |component, options|
  controller = self

  InertiaFlow::Renderer.new(component, options, controller, request, response).render
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inertia_flow-0.1.0 lib/inertia_flow/initializers.rb