Sha256: 3942f15d6d6581cad582619259551aad4adf3d443bc4e87aff0dbf5f2da2dd92

Contents?: true

Size: 250 Bytes

Versions: 1

Compression:

Stored size: 250 Bytes

Contents

module InertiaRails
  module InertiaRequest
    def inertia?
      key? 'HTTP_X_INERTIA'
    end

    def inertia_partial?
      key?('HTTP_X_INERTIA_PARTIAL_COMPONENT')
    end
  end
end

ActionDispatch::Request.include InertiaRails::InertiaRequest

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inertia_rails-3.5.0 lib/patches/request.rb