Class: InertiaRails::CachedProp
- Includes:
- PropCacheable
- Defined in:
- lib/inertia_rails/cached_prop.rb
Instance Method Summary collapse
-
#initialize(key, **options, &block) ⇒ CachedProp
constructor
A new instance of CachedProp.
Methods included from PropCacheable
Methods inherited from BaseProp
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, **, &block) super(cache: .merge!(key: key), &block) end |