lib/ember/appkit/rails/engine.rb in ember-appkit-rails-0.2.0 vs lib/ember/appkit/rails/engine.rb in ember-appkit-rails-0.2.1
- old
+ new
@@ -17,9 +17,10 @@
config.ember.appkit.prefix_patterns.app ||= Regexp.new(File.join(::Rails.root, config.ember.appkit.namespaces.app))
config.ember.appkit.prefix_patterns.config ||= Regexp.new(File.join(::Rails.root, config.ember.appkit.namespaces.config))
ES6ModuleTranspiler.add_prefix_pattern config.ember.appkit.prefix_patterns.app, config.ember.appkit.namespaces.app
ES6ModuleTranspiler.add_prefix_pattern config.ember.appkit.prefix_patterns.config, config.ember.appkit.namespaces.config
+ ES6ModuleTranspiler.transform = lambda { |name| name.split('/').map { |n| n.underscore.dasherize }.join('/') }
end
initializer :appkit_handlebars do
config.handlebars ||= ActiveSupport::OrderedOptions.new
config.handlebars.output_type = :amd