2022-11-21 12:10:04 +02:00
|
|
|
require_relative "boot"
|
|
|
|
|
|
|
|
require "rails"
|
|
|
|
# Pick the frameworks you want:
|
|
|
|
require "active_model/railtie"
|
|
|
|
require "active_job/railtie"
|
|
|
|
require "active_record/railtie"
|
|
|
|
require "action_controller/railtie"
|
|
|
|
require "action_mailer/railtie"
|
2022-12-25 14:13:11 +02:00
|
|
|
#require "active_storage/engine"
|
2022-11-21 12:10:04 +02:00
|
|
|
# require "action_mailbox/engine"
|
2022-12-25 14:13:11 +02:00
|
|
|
#require "action_text/engine"
|
2022-11-21 12:10:04 +02:00
|
|
|
require "action_view/railtie"
|
|
|
|
# require "action_cable/engine"
|
|
|
|
require "rails/test_unit/railtie"
|
|
|
|
|
|
|
|
# Require the gems listed in Gemfile, including any gems
|
|
|
|
# you've limited to :test, :development, or :production.
|
|
|
|
Bundler.require(*Rails.groups)
|
|
|
|
|
2023-01-28 23:01:06 +02:00
|
|
|
module Residency
|
2022-11-21 12:10:04 +02:00
|
|
|
class Application < Rails::Application
|
|
|
|
# Initialize configuration defaults for originally generated Rails version.
|
|
|
|
config.load_defaults 7.0
|
|
|
|
|
2023-01-03 21:29:29 +02:00
|
|
|
config.hosts << "green-machine.local" #our "staging"
|
2023-01-28 22:53:17 +02:00
|
|
|
config.hosts << "residency.hubfeenix.fi" #production
|
2023-01-03 21:29:29 +02:00
|
|
|
|
2023-01-24 22:28:18 +02:00
|
|
|
config.active_job.queue_adapter = :sucker_punch
|
|
|
|
|
2022-11-21 12:10:04 +02:00
|
|
|
# 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")
|
2022-12-09 17:19:57 +02:00
|
|
|
|
2022-12-26 21:03:05 +02:00
|
|
|
#config.autoload_paths << Rails.root.join('lib')
|
2022-12-24 15:07:25 +02:00
|
|
|
|
2022-11-21 12:10:04 +02:00
|
|
|
end
|
|
|
|
end
|
2022-12-25 23:32:34 +02:00
|
|
|
|
|
|
|
ActionView::Base.default_form_builder = SimpleForm::Tailwind::FormBuilder
|