مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
36 أسطر
941 B
Ruby
36 أسطر
941 B
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
|
|
# Set the Rails logger
|
|
config.logger = Postal.logger_for(:rails)
|
|
|
|
# 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_paths += %W(#{config.root}/lib #{config.root}/app/jobs)
|
|
|
|
# Disable field_with_errors
|
|
config.action_view.field_error_proc = Proc.new { |t, i| t }
|
|
end
|
|
end
|