lib/blacklight/engine.rb in blacklight-6.18.0 vs lib/blacklight/engine.rb in blacklight-6.19.0
- old
+ new
@@ -26,10 +26,11 @@
end
end
end
initializer "blacklight.assets.precompile" do |app|
- app.config.assets.precompile += %w(favicon.ico)
+ # When Rails has been generated in API mode, it does not have sprockets available
+ app.config.assets.precompile += %w(favicon.ico) if defined? Sprockets
end
Blacklight::Engine.config.sms_mappings = {
'Virgin' => 'vmobl.com',
'AT&T' => 'txt.att.net',