Sha256: ea689a6a3c25f8af2b08ef0507c22d348aea4fe17bc25f2812f40de4d6423478
Contents?: true
Size: 920 Bytes
Versions: 1
Compression:
Stored size: 920 Bytes
Contents
require 'ember/handlebars/template' require 'active_model_serializers' module Ember module Rails class Engine < ::Rails::Engine config.handlebars = ActiveSupport::OrderedOptions.new config.handlebars.precompile = ::Rails.env.production? config.handlebars.templates_root = "templates" config.handlebars.templates_path_separator = '/' initializer "ember_rails.setup", :group => :all do |app| require 'ember/filters/slim' if defined? Slim require 'ember/filters/haml' if defined? Haml app.assets.register_engine '.handlebars', Ember::Handlebars::Template app.assets.register_engine '.hbs', Ember::Handlebars::Template app.assets.register_engine '.hjs', Ember::Handlebars::Template # Add the gem's vendored ember to the end of the asset search path app.config.assets.paths << Ember::Rails.ember_path end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ember-rails-0.5.0 | lib/ember/rails/engine.rb |