Module: InertiaRails::InertiaMapper

Defined in:
lib/patches/mapper.rb

Instance Method Summary collapse

Instance Method Details

#inertia(args, &block) ⇒ Object



3
4
5
6
7
8
# File 'lib/patches/mapper.rb', line 3

def inertia(args, &block)
  route = args.keys.first
  component = args.values.first

  get(route => 'inertia_rails/static#static', defaults: { component: component })
end