[Rails] Fixed a bug in rails integration if the request is not set on the controller.
This commit is contained in:
parent
b348fd7d3d
commit
7fba6028d8
@ -1,6 +1,6 @@
|
||||
module Compass::SassExtensions::Functions::Urls
|
||||
def image_url_with_rails_integration(path)
|
||||
if @controller = Sass::Plugin.rails_controller
|
||||
if (@controller = Sass::Plugin.rails_controller) && @controller.respond_to?(:request) && @controller.request
|
||||
begin
|
||||
Sass::Script::String.new "url(#{image_path(path.value)})"
|
||||
ensure
|
||||
|
Loading…
Reference in New Issue
Block a user