module Crufty
Constants
- DEFAULT_ON_EXPIRED_HANDLER
- DEFAULT_ON_STALE_HANDLER
- VERSION
Attributes
env[W]
expired_handler[RW]
logger[RW]
stale_handler[RW]
Public Class Methods
env()
click to toggle source
# File lib/crufty.rb, line 11 def env @env ||= ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development" end
on_expired(&block)
click to toggle source
# File lib/crufty.rb, line 19 def on_expired(&block) self.expired_handler = block end
on_stale(&block)
click to toggle source
# File lib/crufty.rb, line 15 def on_stale(&block) self.stale_handler = block end