lib/luna_park/extensions/injector/dependencies.rb in luna_park-0.11.2 vs lib/luna_park/extensions/injector/dependencies.rb in luna_park-0.11.3
- old
+ new
@@ -46,10 +46,10 @@
# Run dependency code and cache result.
#
# use_case.dependencies[:messenger] # => #<Proc:0x0000564a0d90d438@t.rb:34>
# use_case.dependencies.call_with_cache(:messenger) # => 'Foobar'
def call_with_cache(key)
- cache.key?(key) ? cache[key] : cache[key] = self.fetch(key).call
+ cache.key?(key) ? cache[key] : cache[key] = fetch(key).call
end
def []=(key, _val)
cache.delete(key)
super