class Object

Constants

InertiaBetterErrors
InertiaDebugExceptions

Public Instance Methods

inertia(args, &block) click to toggle source
# File lib/patches/mapper.rb, line 2
def inertia(args, &block)
  route = args.keys.first
  component = args.values.first

  get(route => 'inertia_rails/static#static', defaults: {component: component})
end
inertia?() click to toggle source
# File lib/patches/request.rb, line 2
def inertia?
  key? 'HTTP_X_INERTIA'
end
inertia_partial?() click to toggle source
# File lib/patches/request.rb, line 6
def inertia_partial?
  key? 'HTTP_X_INERTIA_PARTIAL_DATA'
end