]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/assets.rb
Add traffico icons to vendor/assets/iD and asset pipeline precompile list
[rails.git] / config / initializers / assets.rb
index bb647b6a75c5c134f4796eae2df59945d9b693e7..fe561bf69475d3ae94c46134c62627b52d3e59ac 100644 (file)
@@ -7,12 +7,12 @@ 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.
 Rails.application.config.assets.precompile += %w( index.js browse.js welcome.js fixthemap.js )
-Rails.application.config.assets.precompile += %w( user.js diary_entry.js )
+Rails.application.config.assets.precompile += %w( user.js login.js diary_entry.js )
 Rails.application.config.assets.precompile += %w( screen-ltr.css print-ltr.css )
 Rails.application.config.assets.precompile += %w( screen-rtl.css print-rtl.css )
 Rails.application.config.assets.precompile += %w( leaflet-all.css leaflet.ie.css )
@@ -26,6 +26,4 @@ Rails.application.config.assets.precompile += %w( potlatch2/assets.zip )
 Rails.application.config.assets.precompile += %w( potlatch2/FontLibrary.swf )
 Rails.application.config.assets.precompile += %w( potlatch2/locales/*.swf )
 Rails.application.config.assets.precompile += %w( help/introduction.* )
-Rails.application.config.assets.precompile += %w( iD/img/*.svg iD/img/*.png iD/img/*.gif )
-Rails.application.config.assets.precompile += %w( iD/img/pattern/*.png )
-Rails.application.config.assets.precompile += %w( iD/locales/*.json )
+Rails.application.config.assets.precompile << Proc.new { |path, fn| fn =~ /vendor\/assets\/iD/ }