Sha256: bb711bf2805bb2d2583783a6db3d52714f79303a49c958b0ab0ac092e381dfd7
Contents?: true
Size: 616 Bytes
Versions: 10
Compression:
Stored size: 616 Bytes
Contents
module Compass::SassExtensions::Functions::Urls def image_url_with_rails_integration(path, only_path = Sass::Script::Bool.new(false)) if (@controller = Sass::Plugin.rails_controller) && @controller.respond_to?(:request) && @controller.request begin if only_path.to_bool Sass::Script::String.new image_path(path.value) else Sass::Script::String.new "url(#{image_path(path.value)})" end ensure @controller = nil end else image_url_without_rails_integration(path) end end alias_method_chain :image_url, :rails_integration end
Version data entries
10 entries across 10 versions & 1 rubygems