lib/embork/sprockets/frameworks.rb in embork-0.0.4 vs lib/embork/sprockets/frameworks.rb in embork-0.0.5
- old
+ new
@@ -1,11 +1,12 @@
module Embork::Sprockets::Frameworks
def load_compass_framework(sprockets_environment)
begin
require 'compass'
sprockets_environment.append_path Compass::Frameworks['compass'].stylesheets_directory
+ Compass.configuration.images_path = File.join sprockets_environment.root, 'static', 'images'
rescue LoadError => e
- (@logger ||= Embork::Logger.new(STDOUT)).error 'Compass gem is not installed.'
+ (@logger ||= Embork::Logger.new(STDOUT, :simple)).error 'Compass gem is not installed.'
@logger.info %{Add `gem 'compass'` to your Gemfile and run `bundle` to install it.}
exit 1
end
end