lib/hackathon_manager/engine.rb in hackathon_manager-0.3.0 vs lib/hackathon_manager/engine.rb in hackathon_manager-0.3.1

- old
+ new

@@ -9,11 +9,15 @@ hackathon_manager/manage.css hackathon_manager/home.css hackathon_manager/vendor/*.js hackathon_manager/vendor/*.css hackathon_manager/mailer.css - hackathon_manager/us.json ] + end + + # Initializer to combine this engines static assets with the static assets of the hosting site. + initializer "static assets" do |app| + app.middleware.insert_before(::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public") end ActionController::Base.class_eval do # Tell Devise where to redirect the user once they sign in def after_sign_in_path_for(resource)