Skip to content

Commit

Permalink
Include css and js manifests from plugins if they are there.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgibson committed May 25, 2015
1 parent c09a9b4 commit 41f6163
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/views/layouts/resque_web/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<title>Resque.</title>
<%= 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 %>
</head>
<body>
Expand Down

0 comments on commit 41f6163

Please sign in to comment.