lib/wcc/contentful/app/engine.rb in wcc-contentful-app-1.5.1 vs lib/wcc/contentful/app/engine.rb in wcc-contentful-app-1.6.0

- old
+ new

@@ -1,13 +1,15 @@ # frozen_string_literal: true module WCC::Contentful::App class Engine < ::Rails::Engine - config.assets.precompile += %w[*.jpg *.png *.svg] - config.assets.precompile += - [ - 'config/manifest.js' - ].map { |f| File.expand_path("../../../../../app/assets/#{f}", __FILE__) } + if config.try(:assets) + config.assets.precompile += %w[*.jpg *.png *.svg] + config.assets.precompile += + [ + 'config/manifest.js' + ].map { |f| File.expand_path("../../../../../app/assets/#{f}", __FILE__) } + end config.generators do |g| g.test_framework :rspec, fixture: false end end