Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-sass.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Harward <trisweb@gmail.com>2013-03-21 21:06:19 +0400
committerTristan Harward <trisweb@gmail.com>2013-03-21 21:06:19 +0400
commit3e40c4caea4a7324107ecd034feb067d50226057 (patch)
tree4ad73c1bdc1448d9f7eab1e31d49928aab6f7fa2 /Rakefile
parent2be2d7d13074d16ea6ca0856cc298dcc6146c449 (diff)
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
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 40dca3bc..2b84a6f8 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])