lib/blacklight/engine.rb in blacklight-7.0.0.rc1 vs lib/blacklight/engine.rb in blacklight-7.0.0.rc2
- old
+ new
@@ -23,10 +23,13 @@
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
+ if defined? Sprockets
+ app.config.assets.precompile += %w(favicon.ico)
+ end
end
Blacklight::Engine.config.sms_mappings = {
'Virgin' => 'vmobl.com',
'AT&T' => 'txt.att.net',