Sha256: 0ec6c7d24c235f75268b8a3e0f9740ad0db794ca443e46998d99d483bb6ef8c4

Contents?: true

Size: 301 Bytes

Versions: 8

Compression:

Stored size: 301 Bytes

Contents

module GulpHelper

  def gulp_asset_path(path)
    path = REV_MANIFEST[path] if defined?(REV_MANIFEST)
    "/assets/#{path}"
  end

  def image_alt(src)
    super.sub(/\s[0-9A-F]{8}\z/i, '')
  end

  def image_tag(image, options = {})
    super(gulp_asset_path("images/#{image}"), options)
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
blueberry_rails-0.4.1 templates/gulp/gulp_helper.rb
blueberry_rails-0.4.0 templates/gulp/gulp_helper.rb
blueberry_rails-0.3.10 templates/gulp/gulp_helper.rb
blueberry_rails-0.3.9 templates/gulp/gulp_helper.rb
blueberry_rails-0.3.8 templates/gulp/gulp_helper.rb
blueberry_rails-0.3.7 templates/gulp/gulp_helper.rb
blueberry_rails-0.3.6 templates/gulp/gulp_helper.rb
blueberry_rails-0.3.5 templates/gulp/gulp_helper.rb