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

- old
+ new

@@ -1,9 +1,5 @@ -# * George Moschovitis <gm@navel.gr> -# (c) 2004-2005 Navel, all rights reserved. -# $Id: fragments.rb 1 2005-04-11 11:04:30Z gmosx $ - require 'fileutils' require 'glue/attribute' require 'nitro/caching/stores' @@ -46,11 +42,11 @@ name = @action_name unless name cache_fragment(block, "#{name}#{options}", options) end def cache_fragment(block, name, options = {}) - unless caching_enabled + unless caching_enabled? block.call return end if fragment = Fragments.get(name, options) @@ -68,5 +64,7 @@ end end end + +# * George Moschovitis <gm@navel.gr>