Sha256: 62adbdbac86acd4f882d22b3c3e5ca45bf5c4f92672a4766ffab80d5d7d5f56e

Contents?: true

Size: 539 Bytes

Versions: 5

Compression:

Stored size: 539 Bytes

Contents

require 'smurf/javascript'
require 'smurf/stylesheet'
require 'smurf/noop'

module ActionView::Helpers::AssetTagHelper
private
  def minifiers
    @@minifiers ||= [Smurf::Javascript, Smurf::Stylesheet, Smurf::Noop]
  end

  def join_asset_file_contents_with_minification(paths)
    content = join_asset_file_contents_without_minification(paths)
    minifiers.detect { |minifier| minifier.minifies?(paths) }.new(content).minified
  end
  alias_method_chain :join_asset_file_contents, :minification
end # ActionView::Helpers::AssetTagHelper

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
smurf-1.0.8 lib/smurf.rb
smurf-1.0.7 lib/smurf.rb
smurf-1.0.6 lib/smurf.rb
smurf-1.0.5 lib/smurf.rb
smurf-1.0.4.rails3.beta3 lib/smurf.rb