Module: Moneta::ExpiresSupport

Overview

This mixin handles the calculation of expiration times.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#default_expiresObject

Returns the value of attribute default_expires.



6
7
8
# File 'lib/moneta/expires_support.rb', line 6

def default_expires
  @default_expires
end

Class Method Details

.included(base) ⇒ Object



55
56
57
# File 'lib/moneta/expires_support.rb', line 55

def included(base)
  base.supports(:expires) if base.respond_to?(:supports)
end