Class: Envoku::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/envoku/rails.rb

Overview

Envoku Railtie for using Envoku to load environment before application is loaded

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.loadObject

Rails uses `#method_missing` to delegate all class methods to the instance, which means `Kernel#load` gets called here. We don't want that.


18
19
20
# File 'lib/envoku/rails.rb', line 18

def self.load
  instance.load
end

Instance Method Details

#loadObject

Public: Load Envoku

This will get called during the `before_configuration` callback, but you can manually call `Envoku::Railtie.load` if you needed it sooner.


12
13
14
# File 'lib/envoku/rails.rb', line 12

def load
  Envoku.load
end