Module: Esse::Rails::CLI::Autoloader

Defined in:
lib/esse/rails/cli/autoloader.rb

Instance Method Summary collapse

Instance Method Details

#after_initializeObject



13
14
15
16
17
18
19
20
21
# File 'lib/esse/rails/cli/autoloader.rb', line 13

def after_initialize
  begin
    env_file = File.expand_path("config/environment.rb", Dir.pwd)
    require env_file if File.exist?(env_file)
  rescue LoadError
    # keep going
  end
  super
end