Sha256: 851f238bd8082c697013f4eb7fde6f422a68af920d18600fd5b2822cb06abf93
Contents?: true
Size: 1.68 KB
Versions: 1
Compression:
Stored size: 1.68 KB
Contents
require 'ember-rails' class Ember::Appkit::Rails::Engine < ::Rails::Engine config.ember.appkit = ActiveSupport::OrderedOptions.new config.ember.appkit.paths = ActiveSupport::OrderedOptions.new config.ember.appkit.namespaces = ActiveSupport::OrderedOptions.new config.ember.appkit.prefix_patterns = ActiveSupport::OrderedOptions.new config.ember.appkit.paths.app = 'app' config.ember.appkit.paths.config = 'config' config.ember.appkit.namespaces.app = 'app' config.ember.appkit.namespaces.config = 'config' config.ember.appkit.enable_logging = ::Rails.env.development? initializer :appkit_transpiler do 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 end initializer :appkit_handlebars do config.handlebars ||= ActiveSupport::OrderedOptions.new config.handlebars.output_type = :amd config.handlebars.amd_namespace = config.ember.appkit.namespaces.app end initializer :appkit_router do |app| app.routes.append do get '/' => "landing#index" end end initializer :appkit_sprockets do Sprockets::Railtie.config.assets.paths.unshift(File.join(::Rails.root, config.ember.appkit.paths.config)) Sprockets::Railtie.config.assets.paths.unshift(File.join(::Rails.root, config.ember.appkit.paths.app)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ember-appkit-rails-0.2.0 | lib/ember/appkit/rails/engine.rb |