مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
33 أسطر
832 B
Ruby
33 أسطر
832 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
|
|
# 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.new { |t, i| t }
|
|
end
|
|
end
|