lib/ember-cli/railtie.rb in ember-cli-rails-0.0.12 vs lib/ember-cli/railtie.rb in ember-cli-rails-0.0.13

- old
+ new

@@ -9,22 +9,14 @@ inflect.acronym "CLI" end end initializer "ember-cli-rails.enable" do - EmberCLI.enable! if enable? + EmberCLI.enable! unless ENV["SKIP_EMBER"] 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