# File lib/compass/app_integration/rails/actionpack2/urls.rb, line 2
  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