Codeminer42/cm42-central

View on GitHub
config/initializers/compass.rb

Summary

Maintainability
A
0 mins
Test Coverage
# http://devcenter.heroku.com/articles/using-compass

require 'fileutils'
FileUtils.mkdir_p(Rails.root.join("tmp", "stylesheets"))

# Workaround Compass bug
module Compass::SassExtensions::Functions::Sprites
  def sprite_path(map)
    Sass::Script::String.new(map.filename)
  end
  Sass::Script::Functions.declare :sprite_path, [:map]
end