Module: Moneta::ExpiresSupport

Overview

This mixin handles the calculation of expiration times.

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

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