Skip to content

Commit

Permalink
Drop config.assets since sprockets-rails isn't in rail 7
Browse files Browse the repository at this point in the history
The dummy application doesn't need assets so it's easier to remove the calls instead
of adding a needless gem to the gemfile.  Rails 7 doesn't have sprocket-rails by default
so we'd need to drop these calls or add it to the Gemfile.

See: https://github.com/rails/rails/issues #43793
  • Loading branch information
jrafanie committed May 22, 2024
1 parent 6ce983d commit 8529571
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
8 changes: 0 additions & 8 deletions spec/dummy/config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@
# Highlight code that triggered database queries in logs.
config.active_record.verbose_query_logs = true

# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
# number of complex assets.
config.assets.debug = true

# Suppress logger output for asset requests.
config.assets.quiet = true

# Raises error for missing translations.
# config.i18n.raise_on_missing_translations = true

Expand Down
6 changes: 0 additions & 6 deletions spec/dummy/config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
# Apache or NGINX already handles this.
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.action_controller.asset_host = 'http://assets.example.com'

Expand Down
14 changes: 0 additions & 14 deletions spec/dummy/config/initializers/assets.rb

This file was deleted.

0 comments on commit 8529571

Please sign in to comment.