Skip to content

Commit

Permalink
rails app:update
Browse files Browse the repository at this point in the history
  • Loading branch information
Florence-Njeri committed Feb 6, 2023
1 parent 3fb004c commit e8ba186
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 34 deletions.
3 changes: 1 addition & 2 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# require "action_text/engine"
require "action_view/railtie"
# require "action_cable/engine"
require "sprockets/railtie"
require "rails/test_unit/railtie"

# Require the gems listed in Gemfile, including any gems
Expand All @@ -22,7 +21,7 @@
module WebsiteOne
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 6.1
config.load_defaults 7.0

# Configuration for the application, engines, and railties goes here.
#
Expand Down
25 changes: 1 addition & 24 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,38 +53,15 @@
# 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
config.assets.compress = true

config.action_mailer.delivery_method = :letter_opener unless ENV['LETTER_OPENER'] == 'false'
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_caching = false
# Suppress logger output for asset requests.
config.assets.quiet = true

# Highlight code that triggered database queries in logs.
config.active_record.verbose_query_logs = true
# config.file_watcher = ActiveSupport::EventedFileUpdateChecker

config.after_initialize do
Bullet.enable = true
Bullet.alert = false
Bullet.bullet_logger = true
Bullet.console = true
Bullet.rails_logger = true
end
# Raises error for missing translations.
# config.i18n.raise_on_missing_translations = true

# Annotate rendered view with file names.
# config.action_view.annotate_rendered_view_with_filenames = true
# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
config.file_watcher = ActiveSupport::EventedFileUpdateChecker

# Uncomment if you wish to allow Action Cable access from any origin.
# config.action_cable.disable_request_forgery_protection = true
end
8 changes: 0 additions & 8 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,9 @@

# Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass
config.action_dispatch.rack_cache = true
config.serve_static_files = true
config.static_cache_control = 'public, max-age=31536000'

# Compress JavaScripts and CSS.
config.assets.compress = true
config.assets.js_compressor = :uglifier

# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false
config.assets.digest = true

# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.asset_host = "http://assets.example.com"
Expand Down

0 comments on commit e8ba186

Please sign in to comment.