Class: InertiaRails::CachedProp

Inherits:
BaseProp
  • Object
show all
Includes:
PropCacheable
Defined in:
lib/inertia_rails/cached_prop.rb

Instance Method Summary collapse

Methods included from PropCacheable

#cached?, #call

Methods inherited from BaseProp

#call

Constructor Details

#initialize(key, **options, &block) ⇒ CachedProp

Returns a new instance of CachedProp.



7
8
9
# File 'lib/inertia_rails/cached_prop.rb', line 7

def initialize(key, **options, &block)
  super(cache: options.merge!(key: key), &block)
end