From 41f6163df9d7633caa7ca0cb0dc0a95028053d8a Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Thu, 23 Apr 2015 23:22:53 +0100 Subject: [PATCH] Include css and js manifests from plugins if they are there. --- app/views/layouts/resque_web/application.html.erb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/resque_web/application.html.erb b/app/views/layouts/resque_web/application.html.erb index d7557cc..492d3dc 100644 --- a/app/views/layouts/resque_web/application.html.erb +++ b/app/views/layouts/resque_web/application.html.erb @@ -6,8 +6,18 @@ Resque. - <%= stylesheet_link_tag "resque_web/application", :media => "all" %> + <%= stylesheet_link_tag "resque_web/application", :media => "all" %> + <%= + ResqueWeb::Plugins.plugins.collect do |p| + stylesheet_link_tag "#{p.name.underscore.downcase}/application" + end.join("\n").html_safe + %> <%= javascript_include_tag "resque_web/application" %> + <%= + ResqueWeb::Plugins.plugins.collect do |p| + javascript_include_tag "#{p.name.underscore.downcase}/application" + end.join("\n").html_safe + %> <%= csrf_meta_tags %>