Sha256: fd1080dbcfc7c3c83dff683b8b9845204b2a067e46767c43cb9a4c62da963319

Contents?: true

Size: 590 Bytes

Versions: 2

Compression:

Stored size: 590 Bytes

Contents

module EmberCli
  class Engine < Rails::Engine
    initializer "ember-cli-rails.rendering" do
      require "ember-cli/ember_controller"
      require "ember-cli/route_helpers"
    end

    initializer "ember-cli-rails.enable" do
      EmberCli.enable! unless EmberCli.skip?
    end

    config.to_prepare do
      ActionController::Base.helper EmberRailsHelper
    end

    config.after_initialize do
      if defined?(ApplicationController)
        require "ember-cli/controller_extension"

        ApplicationController.include(EmberCli::ControllerExtension)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ember-cli-rails-0.5.1 lib/ember-cli/engine.rb
ember-cli-rails-0.5.0 lib/ember-cli/engine.rb