diff options
author | Tristan Harward <trisweb@gmail.com> | 2013-03-21 21:06:19 +0400 |
---|---|---|
committer | Tristan Harward <trisweb@gmail.com> | 2013-03-21 21:06:19 +0400 |
commit | 3e40c4caea4a7324107ecd034feb067d50226057 (patch) | |
tree | 4ad73c1bdc1448d9f7eab1e31d49928aab6f7fa2 /Rakefile | |
parent | 2be2d7d13074d16ea6ca0856cc298dcc6146c449 (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-- | Rakefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]) |