Mercurial > zeropaste
view config/config_init.rb @ 504:aaf58c17694b
Move out custom application config
author | nanaya <me@nanaya.net> |
---|---|
date | Mon, 16 Dec 2024 01:34:05 +0900 |
parents | 2392b86711a1 |
children | 7236c8864ad2 |
line wrap: on
line source
$cfg = {} $cfg[:secret_key] = ENV["ZP_SECRET_KEY"] env = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development" config_local = File.expand_path("config_local_#{env}.rb", __dir__) require config_local if File.exist? config_local $cfg.freeze