mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-03-12 05:05:16 +09:00
* Bump Ruby to 3.4.5
* Update dependencies
* Adjust for Rails 8 and Ruby 3.5 API changes
* Mark params strings as mutable in prepapration for frozen strings in Ruby 3.5
* Update test for HTML5 sanitizer
With Rails 7.1 the HTML5 sanitizer became the default, this breakts this test because the old sanitizer used to delete unpermitted nodes, while the new one returns their content
The final string is safe, but different then it used to be in Rails 7.0
* Remove direct Turbo tesh helpers require & parallelize tests
* Fix Zeitwerk issues with rails extensions
* Update Resque setup for Redis 5+
* Remove unused views
* Remove GID v1 handler
24 lines
750 B
Ruby
24 lines
750 B
Ruby
require_relative "boot"
|
|
|
|
require "rails/all"
|
|
|
|
Bundler.require(*Rails.groups)
|
|
|
|
module Campfire
|
|
class Application < Rails::Application
|
|
# Initialize configuration defaults for originally generated Rails version.
|
|
config.load_defaults 8.1
|
|
|
|
# Please, add to the `ignore` list any other `lib` subdirectories that do
|
|
# not contain `.rb` files, or that should not be reloaded or eager loaded.
|
|
# Common ones are `templates`, `generators`, or `middleware`, for example.
|
|
config.autoload_lib(ignore: %w[assets tasks rails_ext])
|
|
|
|
# Fallback to English if translation key is missing
|
|
config.i18n.fallbacks = true
|
|
|
|
# Use SQL schema format to include search-related objects
|
|
config.active_record.schema_format = :sql
|
|
end
|
|
end
|