lib/commonwealth-vlr-engine/engine.rb in commonwealth-vlr-engine-0.0.1 vs lib/commonwealth-vlr-engine/engine.rb in commonwealth-vlr-engine-0.0.2

- old
+ new

@@ -21,20 +21,22 @@ class Engine < Rails::Engine # for db migrations engine_name 'commonwealth_vlr_engine' - config.to_prepare do - CommonwealthVlrEngine.inject! - end - # This makes our rake tasks visible. rake_tasks do Dir.chdir(File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))) do Dir.glob(File.join('tasks', '*.rake')).each do |railtie| load railtie end end #load "#{config.root}/tasks/dc_public.rake" end + + # needs to be explicit as of sprockets-rails >=3.* + initializer 'commonwealth.assets.precompile' do |app| + app.config.assets.precompile += %w(commonwealth-vlr-engine/*.png commonwealth-vlr-engine/*.gif commonwealth-vlr-engine/openseadragon/*.png) + end + end end