Sha256: 045d9232f23f09336d0fb45f32c0acae52bccc0ebbc771964273f8c25bd7d0c4

Contents?: true

Size: 547 Bytes

Versions: 6

Compression:

Stored size: 547 Bytes

Contents

module Munge
  module Helpers
    module AssetPaths
      def image_path(basename)
        item = items["#{images_root}/#{basename}"]
        url_for(item)
      end

      def font_path(basename)
        item = items["#{fonts_root}/#{basename}"]
        url_for(item)
      end

      def stylesheet_path(basename)
        item = items["#{stylesheets_root}/#{basename}"]
        url_for(item)
      end

      def javascript_path(basename)
        item = items["#{javascripts_root}/#{basename}"]
        url_for(item)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
munge-0.10.0 lib/munge/helpers/asset_paths.rb
munge-0.9.0 lib/munge/helpers/asset_paths.rb
munge-0.8.0 lib/munge/helpers/asset_paths.rb
munge-0.7.1 lib/munge/helpers/asset_paths.rb
munge-0.7.0 lib/munge/helpers/asset_paths.rb
munge-0.6.0 lib/munge/helpers/asset_paths.rb