class Remotenv::Railtie
Remotenv
Railtie
for using Remotenv
to load environment before application is loaded
Public Class Methods
load()
click to toggle source
Rails uses `#method_missing` to delegate all class methods to the instance, which means `Kernel#load` gets called here. We don't want that.
# File lib/remotenv/rails.rb, line 18 def self.load instance.load end
Public Instance Methods
load()
click to toggle source
Public: Load Remotenv
This will get called during the `before_configuration` callback, but you can manually call `Remotenv::Railtie.load` if you needed it sooner.
# File lib/remotenv/rails.rb, line 12 def load Remotenv.load end