require 'rails' module AppConfig class Railtie < Rails::Railtie config.before_configuration do AppConfig.configure do |config| config.config_file = Rails.root.join("config", "config.yml") config.environment = Rails.env config.auto_reload = true if Rails.env == "development" end end end end