Sha256: dccbd864a2325f92f4cbf8a5197f70f11e75f42a831765a6a07839514d3841e8
Contents?: true
Size: 697 Bytes
Versions: 3
Compression:
Stored size: 697 Bytes
Contents
module Compass::SassExtensions::Functions::Urls::ImageUrl def image_url_with_rails_integration(path, only_path = Sass::Script::Bool.new(false), cache_buster = Sass::Script::Bool.new(true)) 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, only_path, cache_buster) end end alias_method_chain :image_url, :rails_integration end
Version data entries
3 entries across 3 versions & 1 rubygems