Permalink
Browse files

[Rails] Fixed a bug in rails integration if the request is not set on…

… the controller.
  • Loading branch information...
chriseppstein committed Jul 9, 2009
1 parent b348fd7 commit 7fba6028d8073a9124a6505aab9246b5b459db34
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/compass/app_integration/rails/urls.rb
@@ -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

0 comments on commit 7fba602

Please sign in to comment.