From 3e40c4caea4a7324107ecd034feb067d50226057 Mon Sep 17 00:00:00 2001 From: Tristan Harward Date: Thu, 21 Mar 2013 13:06:19 -0400 Subject: Provide image_path that works with Sprockets Prior to this, functions in sprockets-sass conflicted with ours and caused an infinite loop and StackError. This fixes thomas-mcdonald/bootstrap-sass#257 Note that Sprockets' asset_path requires configuration if it's not already configured by your framework. For example, in a simple Rack app, add the following to your config.ru: environment.context_class.class_eval do def asset_path(path, options = {}) "/assets/#{path}" end end --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 40dca3b..2b84a6f 100644 --- a/Rakefile +++ b/Rakefile @@ -9,7 +9,7 @@ desc 'Dumps output to a CSS file for testing' task :debug do require 'sass' require './lib/bootstrap-sass/compass_functions' - require './lib/bootstrap-sass/rails_functions' + require './lib/bootstrap-sass/sass_functions' path = './vendor/assets/stylesheets' %w(bootstrap bootstrap-responsive).each do |file| engine = Sass::Engine.for_file("#{path}/#{file}.scss", syntax: :scss, load_paths: [path]) -- cgit v1.2.3