Upgrade emblem template
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user