Sha256: 44c9e76785395f3090e17d5f2f3685074bdc548609aea1efc1876b8ebe234078
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
module Pictrails module CachingMethods def self.included(base) base.alias_method_chain :caching_allowed, :skipping end protected # if a skip_caching attribute is define no caching made # it's usefull when you render a redirect after a post. def caching_allowed_with_skipping caching_allowed_without_skipping && !@skip_caching end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pictrails-0.5.0 | lib/pictrails/caching_methods.rb |