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-3.4.0 lib/patches/request.rb
inertia_rails-3.3.0 lib/patches/request.rb
inertiax_rails-2.0.0 lib/patches/request.rb
inertia_rails-3.2.0 lib/patches/request.rb
inertia_rails-3.1.4 lib/patches/request.rb
inertia_rails-3.1.3 lib/patches/request.rb
inertia_rails-3.1.2 lib/patches/request.rb
inertia_rails-3.1.1 lib/patches/request.rb
inertia_rails-3.1.0 lib/patches/request.rb
inertia_rails-3.0.0 lib/patches/request.rb
inertia_rails-2.0.1 lib/patches/request.rb
inertia_rails-2.0.0 lib/patches/request.rb
inertia_rails-1.12.1 lib/patches/request.rb
inertia_rails-1.12.0 lib/patches/request.rb
inertia_rails-1.11.1 lib/patches/request.rb
inertia_rails-1.11.0 lib/patches/request.rb
inertia_rails-1.10.0 lib/patches/request.rb
inertia_rails-1.9.2 lib/patches/request.rb
inertia_rails-1.9.1 lib/patches/request.rb
inertia_rails-1.9.0 lib/patches/request.rb