Sha256: c7a61522e435b9660afa64947830d4f332642236f0d928f41c6a1d325f3b4874

Contents?: true

Size: 327 Bytes

Versions: 14

Compression:

Stored size: 327 Bytes

Contents

require 'action_view'
module Lawnchair
  module View
    module Helper
      def lawnchair_cache(key, &block)
        rendered_value = Lawnchair.cache(key, :raw => true) do
          capture(&block)
        end
        concat(rendered_value)
      end
    end
  end
end

ActionView::Base.send(:include, Lawnchair::View::Helper)

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
lawnchair-0.6.11 lib/view/helper.rb
lawnchair-0.6.10 lib/view/helper.rb
lawnchair-0.6.9 lib/view/helper.rb
lawnchair-0.6.8 lib/view/helper.rb
lawnchair-0.6.7 lib/view/helper.rb
lawnchair-0.6.6 lib/view/helper.rb
lawnchair-0.6.5 lib/view/helper.rb
lawnchair-0.6.4 lib/view/helper.rb
lawnchair-0.6.2 lib/view/helper.rb
lawnchair-0.6.0 lib/view/helper.rb
lawnchair-0.5.7 lib/view/helper.rb
lawnchair-0.5.6 lib/view/helper.rb
lawnchair-0.5.5 lib/view/helper.rb
lawnchair-0.5.4 lib/view/helper.rb