From 39c28034936240aea0665b6454b4aa695d257524 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Wed, 8 Jan 2014 16:45:21 +1100 Subject: [PATCH] Turn off name mangling to make DI more natural in angular - https://shellycloud.com/blog/2013/10/how-to-integrate-angularjs-with-rails-4 --- config/environments/production.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index e02b8f942d..2e08f8e029 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -45,6 +45,8 @@ Openfoodnetwork::Application.configure do # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) # config.assets.precompile += %w( search.js ) + config.assets.js_compressor = Uglifier.new(mangle: false) + # Disable delivery errors, bad email addresses will be ignored # config.action_mailer.raise_delivery_errors = false