Files
fizzy/config/application.rb
T
Mike Dalessio 72a1cfc088 dep: update Rails and AR::Tenanted
Note that the query logs in this version of AR::Tenanted have changed,
to use standard Rails query log tags, which I have enabled.

Note that enabling Rails query log tags disables prepared
statements. I don't think turning off prepared statements will impact
our performance, but I'll verify that post-deploy (we have dashboards
for a reason).
2025-11-05 13:12:42 -05:00

38 lines
1.3 KiB
Ruby

require_relative "boot"
require "rails/all"
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Fizzy
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 8.1
# Include the `lib` directory in autoload paths. Use the `ignore:` option
# to list subdirectories that don't contain `.rb` files or that shouldn't
# be reloaded or eager loaded.
config.autoload_lib ignore: %w[ assets tasks rails_ext ]
# Configuration for the application, engines, and railties goes here.
#
# These settings can be overridden in specific environments using the files
# in config/environments, which are processed later.
#
# config.time_zone = "Central Time (US & Canada)"
# config.eager_load_paths << Rails.root.join("extras")
# enable load_async
config.active_record.async_query_executor = :global_thread_pool
# use routes for error pages instead of static files
config.exceptions_app = self.routes
# include the tenant in query logs
config.active_record.query_log_tags_enabled = true
config.active_record.query_log_tags = [ :tenant ]
end
end