Injects an expires_in value from the global configuration.
7 8 9 10 11
# File 'lib/garner/strategies/cache/expiration_strategy.rb', line 7 def apply(current, options = {}) rc = current ? current.dup : {} rc[:expires_in] = Garner.config.expires_in if Garner.config.expires_in && ! current[:expires_in] rc end