lib/nitro/caching.rb in nitro-0.18.1 vs lib/nitro/caching.rb in nitro-0.19.0

- old
+ new

@@ -21,9 +21,15 @@ base.send :include, Output, Actions, Fragments base.class_eval do cattr_accessor :caching_enabled, true end end + +private + + def caching_enabled? + Caching.caching_enabled and self.class.caching_enabled + end end end