Sha256: a15f94fc63d6cf0e8906b7abfbf21b0257539933b697275724ffa676eaab6ee8
Contents?: true
Size: 709 Bytes
Versions: 5
Compression:
Stored size: 709 Bytes
Contents
require 'compass-rails/patches/static_compiler' module Sass::Script::Functions def generated_image_url(path, only_path = nil) asset_url(path, Sass::Script::String.new("image")) end end module Compass::RailsImageFunctionPatch private def image_path_for_size(image_file) begin file = ::Rails.application.assets.find_asset(image_file) return file rescue ::Sprockets::FileOutsidePaths return super(image_file) end end end module Sass::Script::Functions include Compass::RailsImageFunctionPatch end # Wierd that this has to be re-included to pick up sub-modules. Ruby bug? class Sass::Script::Functions::EvaluationContext include Sass::Script::Functions end
Version data entries
5 entries across 5 versions & 1 rubygems