Add a generated-image-url helper for rails31 specifically
This commit is contained in:
parent
02f268f1b1
commit
d0bbb66e73
@ -1,5 +1,5 @@
|
|||||||
# TODO figure something out so image_path works with rails integration
|
# 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}"
|
require "compass/app_integration/rails/actionpack31/#{lib}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module Sass::Script::Functions
|
module Sass::Script::Functions
|
||||||
def generated_image_url(path)
|
def generated_image_url(path, only_path = nil)
|
||||||
asset_url(path, "image")
|
asset_url(path, Sass::Script::String.new("image"))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user