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 EncounterEngine
  class Application < Rails::Application

    config.action_cable.mount_path = '/websocket'
    config.action_cable.disable_request_forgery_protection = true
    # Initialize configuration defaults for originally generated Rails version.
    # config.load_defaults 5.0
    config.assets.enabled = false
    config.generators do |g|
      g.assets false
    end
    config.active_record.belongs_to_required_by_default = false
    config.i18n.default_locale = :ru

    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration should go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded.
    config.eager_load_paths << "app/interactors"
  end
end
