lib/susanoo/controllers/index.rb in susanoo-0.8.0 vs lib/susanoo/controllers/index.rb in susanoo-0.10.0
- old
+ new
@@ -8,14 +8,15 @@
# Tilt template object
template = Tilt.new(File.join(project_root, 'src/index.html.erb'))
[200, {'Content-Type' => 'text/html'}, [template.render(self)]]
end
- def build(generator)
+ def build(generator, route)
# Configure Sprockets::Helpers (if necessary)
Sprockets::Helpers.configure do |config|
config.environment = @environment
config.prefix = 'assets'
+ config.debug = false
end
template = Tilt.new(File.join(project_root, 'src/index.html.erb'))
data = template.render(self)
# God forgive me for hard coding this part