lib/ember-cli/middleware.rb in ember-cli-rails-0.1.1 vs lib/ember-cli/middleware.rb in ember-cli-rails-0.1.2
- old
+ new
@@ -13,10 +13,10 @@
private
def enable_ember_cli
@enabled ||= begin
- if Rails.env.development?
+ if Helpers.use_live_recompilation?
EmberCLI.run!
else
EmberCLI.compile!
end