Sha256: 087a5051ecf14b981bcb2cd3c5cde657080709923015217ce54b126c55996cd5
Contents?: true
Size: 469 Bytes
Versions: 1
Compression:
Stored size: 469 Bytes
Contents
module Compressible::ViewHelpers def compressible_stylesheet_tag(*keys) Compressible.stylesheets_for(*keys).collect do |asset| stylesheet_link_tag(asset) end.join("\n").html_safe end def compressible_javascript_tag(*keys) Compressible.javascripts_for(*keys).collect do |asset| javascript_include_tag(asset) end.join("\n").html_safe end end ActionView::Base.send(:include, Compressible::ViewHelpers) if defined?(ActionView)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
compressible-0.0.2 | lib/compressible/view_helpers.rb |