Sha256: 25857db4788e0c599b0b849a29bc8e062c15479248558aab5d479ae00a60c36b
Contents?: true
Size: 676 Bytes
Versions: 6
Compression:
Stored size: 676 Bytes
Contents
module EmberCLI class Railtie < Rails::Railtie initializer "ember-cli-rails.view_helpers" do ActionView::Base.send :include, ViewHelpers end initializer "ember-cli-rails.inflector" do ActiveSupport::Inflector.inflections :en do |inflect| inflect.acronym "CLI" end end initializer "ember-cli-rails.enable" do EmberCLI.enable! if enable? end rake_tasks do require "sprockets/rails/task" Helpers.override_assets_precompile_task! end def enable? !skip_ember_cli_init? && Helpers.non_production? end def skip_ember_cli_init? ENV.fetch("SKIP_EMBER", false) end end end
Version data entries
6 entries across 6 versions & 1 rubygems