Sha256: cf8b78592ff360fd6fb7930ef8c5795349a56484c6d9a018a18c3341dff03656
Contents?: true
Size: 826 Bytes
Versions: 3
Compression:
Stored size: 826 Bytes
Contents
# frozen_string_literal: true 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hanami-controller-2.0.0.rc1 | lib/hanami/action/cache.rb |
hanami-controller-2.0.0.beta4 | lib/hanami/action/cache.rb |
hanami-controller-2.0.0.beta1 | lib/hanami/action/cache.rb |