Sha256: 8c7e9752940ba2410fe27193b8b0b0429b37c50f70ad17c56ab47ab99ff9a8f5
Contents?: true
Size: 861 Bytes
Versions: 5
Compression:
Stored size: 861 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 = true config.handlebars.templates_root = "templates" config.handlebars.templates_path_separator = '/' initializer "ember_rails.setup", :after => :append_assets_path, :group => :all do |app| sprockets = if ::Rails::VERSION::MAJOR == 4 Sprockets.respond_to?('register_engine') ? Sprockets : app.assets else app.assets end sprockets.register_engine '.handlebars', Ember::Handlebars::Template sprockets.register_engine '.hbs', Ember::Handlebars::Template sprockets.register_engine '.hjs', Ember::Handlebars::Template end end end end
Version data entries
5 entries across 5 versions & 1 rubygems