Module: Compressible::ViewHelpers

Defined in:
lib/compressible/view_helpers.rb

Instance Method Summary collapse

Instance Method Details

#compressible_javascript_tag(*keys) ⇒ Object



9
10
11
12
13
# File 'lib/compressible/view_helpers.rb', line 9

def compressible_javascript_tag(*keys)
  Compressible.javascripts_for(*keys).collect do |asset|
    javascript_include_tag(asset)
  end.join("\n").send(safe_method)
end

#compressible_stylesheet_tag(*keys) ⇒ Object



3
4
5
6
7
# File 'lib/compressible/view_helpers.rb', line 3

def compressible_stylesheet_tag(*keys)
  Compressible.stylesheets_for(*keys).collect do |asset|
    stylesheet_link_tag(asset)
  end.join("\n").send(safe_method)
end