Skip to content

Commit

Permalink
Add blacklight initializer to explicitly precompile favicon.ico for c…
Browse files Browse the repository at this point in the history
…ompatiblity with sprockets-rails 3.x
  • Loading branch information
cbeer committed Dec 17, 2015
1 parent 3e9c5f2 commit 47f85a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/blacklight.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<title><%= render_page_title %></title>
<%= opensearch_description_tag application_name, opensearch_catalog_url(:format => 'xml') %>
<%= favicon_link_tag 'favicon.ico' %>
<%= favicon_link_tag %>
<%= stylesheet_link_tag "application", media: "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
Expand Down
4 changes: 4 additions & 0 deletions lib/blacklight/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class Engine < Rails::Engine
end
end

initializer "blacklight.assets.precompile" do |app|
app.config.assets.precompile += %w(favicon.ico)
end

Blacklight::Engine.config.sms_mappings = {
'Virgin' => 'vmobl.com',
'AT&T' => 'txt.att.net',
Expand Down

0 comments on commit 47f85a1

Please sign in to comment.