diff --git a/config/environments/development.rb b/config/environments/development.rb index fcad87e9..e2bb0644 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -61,9 +61,6 @@ # Highlight code that enqueued background job in logs. config.active_job.verbose_enqueue_logs = true - # Suppress logger output for asset requests. - config.assets.quiet = true - # Raises error for missing translations. # config.i18n.raise_on_missing_translations = true diff --git a/config/environments/production.rb b/config/environments/production.rb index 478c5fb2..69725b28 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -25,12 +25,6 @@ # Enable static file serving from the `/public` folder (turn off if using NGINX/Apache for it). config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? - # Compress CSS using a preprocessor. - # config.assets.css_compressor = :sass - - # Do not fallback to assets pipeline if a precompiled asset is missed. - config.assets.compile = false - # Enable serving of images, stylesheets, and JavaScripts from an asset server. # config.asset_host = "http://assets.example.com" diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb deleted file mode 100644 index bcafccdd..00000000 --- a/config/initializers/assets.rb +++ /dev/null @@ -1,14 +0,0 @@ -# frozen_string_literal: true - -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path. -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in the app/assets -# folder are already added. -# Rails.application.config.assets.precompile += %w( admin.js admin.css ) diff --git a/lib/comfortable_media_surfer/engine.rb b/lib/comfortable_media_surfer/engine.rb index eb58b64d..1a82a746 100644 --- a/lib/comfortable_media_surfer/engine.rb +++ b/lib/comfortable_media_surfer/engine.rb @@ -11,14 +11,6 @@ module ComfortableMediaSurfer class Engine < ::Rails::Engine - initializer 'comfortable_media_surfer.setup_assets' do - ::ComfortableMediaSurfer::Engine.config.assets.precompile += %w[ - comfy/admin/cms/application.js - comfy/admin/cms/application.css - comfy/admin/cms/lib/redactor-font.eot - ] - end - config.to_prepare do Dir.glob("#{Rails.root}app/decorators/comfortable_media_surfer/*_decorator*.rb").each do |c| require_dependency(c)