public
Last active

Sass load paths Rails 3.1

  • Download Gist
config_initializers_sass.rb
Ruby
1 2 3 4 5 6
Sass::Engine::DEFAULT_OPTIONS[:load_paths].tap do |load_paths|
load_paths << "#{Rails.root}/app/assets/stylesheets"
load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets"
load_paths << "#{Gem.loaded_specs['html5-boilerplate'].full_gem_path}/stylesheets"
load_paths << "#{Gem.loaded_specs['fancy-buttons'].full_gem_path}/lib/stylesheets"
end

Sass rails really needs an init script that globs this :)

Thanks!

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.