class CredsEnv::Railtie
CredsEnv
Railtie
for using CredsEnv
to load environment from Rails encrypted credentials
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/creds_env/rails.rb, line 17 def self.load instance.load end
Public Instance Methods
load()
click to toggle source
Public: Load CredsEnv
This will get called during the `before_configuration` callback, but you can manually call `CredsEnv::Railtie.load` if you needed it sooner.
# File lib/creds_env/rails.rb, line 11 def load CredsEnv.load end