Sha256: 6408b4ad78d8618a56a65811e927f53f6b46373110b9f21e1c83358637a94165
Contents?: true
Size: 795 Bytes
Versions: 7
Compression:
Stored size: 795 Bytes
Contents
require 'hanami/action/cache/cache_control' require 'hanami/action/cache/expires' require 'hanami/action/cache/conditional_get' module Hanami class Action # Cache type API # # @since 0.3.0 # # @see Hanami::Action::Cache::ClassMethods#cache_control # @see Hanami::Action::Cache::ClassMethods#expires # @see Hanami::Action::Cache::ClassMethods#fresh module Cache # Override Ruby's hook for modules. # It includes exposures logic # # @param base [Class] the target action # # @since 0.3.0 # @api private # # @see http://www.ruby-doc.org/core/Module.html#method-i-included def self.included(base) base.class_eval do include CacheControl, Expires end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems