Sha256: ee616ec7e09f94ee232b23647a409bbd52d99f09d8572539078e9b3e47ee1cba
Contents?: true
Size: 557 Bytes
Versions: 6
Compression:
Stored size: 557 Bytes
Contents
module Machined module Helpers module AssetTagHelpers # Override asset_path to also work with the # Padrino::Helpers::AssetTagHelpers API. def asset_path(source, options = {}) case source when :css path_to_asset options, :dir => "stylesheets", :ext => "css" when :images path_to_asset options, :dir => "images" when :js path_to_asset options, :dir => "javascripts", :ext => "js" else path_to_asset source, options end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems