Sha256: 05ab9a2ec77810c7af8526267cd344473e60842ca42ebdc7717dcd5e8d8f6781
Contents?: true
Size: 697 Bytes
Versions: 13
Compression:
Stored size: 697 Bytes
Contents
# frozen_string_literal: true 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
13 entries across 13 versions & 1 rubygems