Upgrade emblem template

This commit is contained in:
2015-08-28 19:09:11 +02:00
parent eca4a23c64
commit afb7687b93
14 changed files with 44 additions and 32 deletions
+5 -3
View File
@@ -1,9 +1,11 @@
if "Ember::Emblem::Template".safe_constantize
if defined?(Ember::Emblem::Template)
namespaces = %w[supplier waiter user]
template_roots = namespaces.map{|namespace| namespace + '/app/templates'}
Ember::Emblem::Template.configure do |config|
config.templates_root = ['app/templates']
config.templates_root = %w[supplier/app/templates waiter/app/templates user/app/templates]
config.templates_root = template_roots
# You can overwrite other config
end
Rails.application.config.handlebars.templates_root = template_roots
end