Module: InertiaRails::InertiaRequest

Defined in:
lib/patches/request.rb

Instance Method Summary collapse

Instance Method Details

#inertia?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/patches/request.rb', line 3

def inertia?
  key? 'HTTP_X_INERTIA'
end

#inertia_partial?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/patches/request.rb', line 7

def inertia_partial?
  key?('HTTP_X_INERTIA_PARTIAL_COMPONENT')
end