mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-04-11 15:33:08 +09:00
Previously we had to use structure.sql since schema.rb didn't have support for virtual tables that we needed for search. Since Campfire's release virtuals tables have been added to Rails, so there is no need to use structure.sql anymore
21 lines
641 B
Ruby
21 lines
641 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
|
|
end
|
|
end
|