Sha256: c9bc1b1a8cde58b6969cd22460c176dcaf6c62fd26afb0615663667bfa01e1dd

Contents?: true

Size: 466 Bytes

Versions: 8

Compression:

Stored size: 466 Bytes

Contents

require "envkey/core"

module Envkey
  class Railtie < Rails::Railtie

    config.before_configuration do
      begin
        require "spring/commands"
        ts = Time.now
        overload_dotenv_vars, overload_envkey_vars = Envkey::Core.load_env
        Spring.after_fork do
          Envkey::Core.load_env(ts, (overload_dotenv_vars || []), (overload_envkey_vars || []))
        end
      rescue LoadError
        Envkey::Core.load_env
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
envkey-1.2.4 lib/envkey/rails.rb
envkey-1.2.2 lib/envkey/rails.rb
envkey-1.2.1 lib/envkey/rails.rb
envkey-1.2.0 lib/envkey/rails.rb
envkey-1.1.0 lib/envkey/rails.rb
envkey-1.0.1 lib/envkey/rails.rb
envkey-1.0.0 lib/envkey/rails.rb
envkey-0.1.5 lib/envkey/rails.rb