Sha256: 8f9c0a79ba4c62d76731c4c5d87bbecf0ccd499e3e5e8603d71e57461623ee3d

Contents?: true

Size: 357 Bytes

Versions: 4

Compression:

Stored size: 357 Bytes

Contents

require_relative 'inertia_rails'

module InertiaRails::Helper
  def inertia_ssr_head
    controller.instance_variable_get("@_inertia_ssr_head")
  end

  def inertia_headers
    InertiaRails.deprecator.warn(
      "`inertia_headers` is deprecated and will be removed in InertiaRails 4.0, use `inertia_ssr_head` instead."
    )
    inertia_ssr_head
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
inertia_rails-3.6.0 lib/inertia_rails/helper.rb
inertia_rails-3.5.0 lib/inertia_rails/helper.rb
inertia_rails-3.4.0 lib/inertia_rails/helper.rb
inertia_rails-3.3.0 lib/inertia_rails/helper.rb