Sha256: 07e5a817874ce4674585d0691cf0ba1b1a337e61de9ac2860d2b627a0d66e488
Contents?: true
Size: 335 Bytes
Versions: 1
Compression:
Stored size: 335 Bytes
Contents
# frozen_string_literal: true require "uri" class Twelvefactor::Railtie < Rails::Railtie config.before_configuration do |app| ns = Twelvefactor::Environment ns.constants.each do |c| env_name = c.to_s.upcase + "_URL" env = ENV[env_name] ns.const_get(c).apply app, URI(env) if env.present? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twelvefactor-1.0.0 | lib/twelvefactor/railtie.rb |