Sha256: c7a6739eb78c059baa163772df30c52253ff494d22c27b6185aa1d9cf1828e92

Contents?: true

Size: 158 Bytes

Versions: 27

Compression:

Stored size: 158 Bytes

Contents

ActionDispatch::Request.class_eval do
  def inertia?
    key? 'HTTP_X_INERTIA'
  end

  def inertia_partial?
    key? 'HTTP_X_INERTIA_PARTIAL_DATA'
  end
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
inertia_rails-1.8.0 lib/patches/request.rb
inertia_rails-1.7.1 lib/patches/request.rb
inertia_rails-1.7.0 lib/patches/request.rb
inertia_rails-1.6.0 lib/patches/request.rb
inertia_rails-1.5.0 lib/patches/request.rb
inertia_rails-1.4.1 lib/patches/request.rb
inertia_rails-1.4.0 lib/patches/request.rb