Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update the initializer generator template to work with the new templa…

…te_location hash
  • Loading branch information...
commit a581d036828a1592e6b59a777bb4defa63ce6004 1 parent 01cdfc2
@joshuabates joshuabates authored
Showing with 4 additions and 10 deletions.
  1. +4 −10 generators/blueprint/templates/initializer.rb
View
14 generators/blueprint/templates/initializer.rb
@@ -1,11 +1,5 @@
-template_locations = Sass::Plugin.options[:template_location].split(':')
-css_locations = Sass::Plugin.options[:css_location].split(':')
+Sass::Plugin.options[:template_location] = {
+ "#{RAILS_ROOT}/app/stylesheets" => "#{RAILS_ROOT}/public/stylesheets",
+ "#{RAILS_ROOT}/vendor/plugins/blueprint-sass/blueprint" => "#{RAILS_ROOT}/public/stylesheets/blueprint"
+}
-template_locations << "#{RAILS_ROOT}/app/stylesheets"
-template_locations << "#{RAILS_ROOT}/vendor/plugins/blueprint-sass/blueprint"
-
-css_locations << "#{RAILS_ROOT}/public/stylesheets"
-css_locations << "#{RAILS_ROOT}/public/stylesheets/blueprint"
-
-Sass::Plugin.options[:template_location] = template_locations.join(':')
-Sass::Plugin.options[:css_location] = css_locations.join(':')
Please sign in to comment.
Something went wrong with that request. Please try again.