Sha256: ed908678f41678d06d1328b56030621575285b470684f5a5c6dbe8895f8f663c
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 Bytes
Contents
class MetryExtension < Radiant::Extension version "1.0" description "Provides Metry support to Radiant." url "http://terralien.com/projects" def activate Page.class_eval do include MetryTags def metry_active=(state) @metry_active = state end def metry_active? @metry_active end def cache_with_metry? (cache_without_metry? && !metry_active?) end alias_method_chain :cache?, :metry end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
metry-1.0.0 | radiant/extension/metry_extension.rb |
metry-1.0.1 | radiant/extension/metry_extension.rb |