Sha256: da6659d59766a7ca97d026213aa8a45f8b4ee9f05237aff4b3ea3a161b820cc2

Contents?: true

Size: 318 Bytes

Versions: 2

Compression:

Stored size: 318 Bytes

Contents

module LaserLemon
  module CacheFlow
    def cache!(name = {}, options = nil, &block)
      if controller = eval('@controller', block.binding)
        controller.fragment_for(@target, name, options, &block)
      else
        yield
      end
    end
  end
end

Builder::XmlMarkup.send(:include, LaserLemon::CacheFlow)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cache_flow-0.1.1 lib/cache_flow.rb
cache_flow-0.1.0 lib/cache_flow.rb