1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-12-01 05:43:04 +00:00
الملفات
postal/config/application.rb
Adam Cooke 957b784658 chore: Upgrade to Ruby 3.2.1 & Rails 6.0
* chore: upgrade to rails 6.0

* chore: upgrade ruby to 3.2.1

* chore: upgrade bundler

* chore: upgrade execjs

* chore: upgrade to rails 6.1

* chore: switch to sentry-ruby from raven

* chore: add extra platforms to gemfile
2023-04-06 11:40:45 +01:00

45 أسطر
1.1 KiB
Ruby

require_relative "boot"
require "rails"
require "active_model/railtie"
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_view/railtie"
require "sprockets/railtie"
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Postal
class Application < Rails::Application
config.load_defaults 6.0
# Disable most generators
config.generators do |g|
g.orm :active_record
g.test_framework false
g.stylesheets false
g.javascripts false
g.helper false
end
# Include from lib
config.eager_load_namespaces << Postal
# Disable field_with_errors
config.action_view.field_error_proc = proc { |t, i| t }
# Load the tracking server middleware
require "postal/tracking_middleware"
config.middleware.use Postal::TrackingMiddleware
config.logger = Postal.logger_for(:rails)
config.hosts << Postal.config.web.host
end
end