]> git.openstreetmap.org Git - rails.git/commitdiff
Ensure assets are recompiled when configuration changes
authorTom Hughes <tom@compton.nu>
Wed, 30 Sep 2015 18:34:14 +0000 (19:34 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 30 Sep 2015 18:34:14 +0000 (19:34 +0100)
app/assets/javascripts/osm.js.erb
config/initializers/assets.rb

index 61c2d1e6b9faebe220fd4b26bf9b8d18b8e5689f..0f044c24fea192b2983f820dc81d29bdcf7e04f9 100644 (file)
@@ -1,3 +1,5 @@
+//= depend_on application.yml
+
 OSM = {
 <% if defined?(PIWIK) %>
   PIWIK:                 <%= PIWIK.to_json %>,
index bb647b6a75c5c134f4796eae2df59945d9b693e7..7baac7f789310d9c2802c9d8e33e3f2a9a429c5e 100644 (file)
@@ -7,7 +7,7 @@ Rails.application.config.assets.version = "1.0"
 Rails.application.config.assets.manifest = Rails.root.join("tmp/manifest.json")
 
 # Add additional assets to the asset load path
-# Rails.application.config.assets.paths << Emoji.images_path
+Rails.application.config.assets.paths << Rails.root.join("config")
 
 # Precompile additional assets.
 # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.