Skip to content

Commit

Permalink
Revert "Don't configure assets in rails API mode"
Browse files Browse the repository at this point in the history
This reverts commit 6dfe4b4.
  • Loading branch information
cbeer committed Dec 17, 2018
1 parent 6b32e4e commit 286d4fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/blacklight/engine.rb
Expand Up @@ -28,8 +28,7 @@ class Engine < Rails::Engine
end

initializer "blacklight.assets.precompile" do |app|
# When Rails has been generated in API mode, it does not have sprockets available
app.config.assets.precompile += %w(favicon.ico) if defined? Sprockets
app.config.assets.precompile += %w(favicon.ico)
end

Blacklight::Engine.config.sms_mappings = {
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/blacklight/install_generator.rb
Expand Up @@ -12,7 +12,7 @@ class Install < Rails::Generators::Base
class_option :devise , type: :boolean, default: false, aliases: "-d", desc: "Use Devise as authentication logic."
class_option :jettywrapper, type: :boolean, default: false, desc: "Use jettywrapper to download and control Jetty"
class_option :marc , type: :boolean, default: false, aliases: "-m", desc: "Generate MARC-based demo ."
class_option :'skip-assets', type: :boolean, default: !defined?(Sprockets), desc: "Skip generating javascript and css assets into the application"
class_option :'skip-assets', type: :boolean, default: false, desc: "Skip generating javascript and css assets into the application"
class_option :'skip-solr', type: :boolean, default: false, desc: "Skip generating solr configurations."

desc <<-EOS
Expand Down

0 comments on commit 286d4fc

Please sign in to comment.