]> git.openstreetmap.org Git - rails.git/blobdiff - config/application.rb
Don't try and modify policy if we don't have one
[rails.git] / config / application.rb
index 142e436c5162d72d59445cf71d7eae095e1866bf..5ff166beb1ab86812c100eb18d6d376534e857da 100644 (file)
@@ -56,5 +56,8 @@ module OpenStreetMap
       config.logstasher.logger_path = LOGSTASH_PATH
       config.logstasher.log_controller_parameters = true
     end
+
+    # Configure image optimisation
+    config.assets.image_optim = YAML.load_file(Rails.root.join("config", "image_optim.yml"))
   end
 end