Add a generated-image-url helper for rails31 specifically

This commit is contained in:
Chris Eppstein 2011-08-28 12:54:52 -07:00
parent 02f268f1b1
commit d0bbb66e73
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# TODO figure something out so image_path works with rails integration
%w(railtie).each do |lib|
%w(railtie helpers).each do |lib|
require "compass/app_integration/rails/actionpack31/#{lib}"
end

View File

@ -1,5 +1,5 @@
module Sass::Script::Functions
def generated_image_url(path)
asset_url(path, "image")
def generated_image_url(path, only_path = nil)
asset_url(path, Sass::Script::String.new("image"))
end
end