lib/volt/server/template_handlers/view_processor.rb in volt-0.9.5.pre4 vs lib/volt/server/template_handlers/view_processor.rb in volt-0.9.5.pre5
- old
+ new
@@ -65,11 +65,10 @@
end
Opal.compile(code)
end
- def self.setup
- sprockets = $volt_app.sprockets
+ def self.setup(sprockets=$volt_app.sprockets)
sprockets.register_mime_type 'application/vtemplate', extensions: ['.html', '.email']
sprockets.register_transformer 'application/vtemplate', 'application/javascript', Volt::ViewProcessor.new(true)
end
end
end