Mercurial > zeropaste
comparison config/config_init.rb @ 503:2392b86711a1
Remove standalone option
I reverted the bundler require option during upgrade but the custom group isn't relevant anymore anyway.
| author | nanaya <me@nanaya.net> |
|---|---|
| date | Mon, 16 Dec 2024 01:15:49 +0900 |
| parents | 507b7f8e8b3b |
| children | 7236c8864ad2 |
comparison
equal
deleted
inserted
replaced
| 502:507b7f8e8b3b | 503:2392b86711a1 |
|---|---|
| 4 env = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development" | 4 env = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development" |
| 5 config_local = File.expand_path("config_local_#{env}.rb", __dir__) | 5 config_local = File.expand_path("config_local_#{env}.rb", __dir__) |
| 6 | 6 |
| 7 require config_local if File.exist? config_local | 7 require config_local if File.exist? config_local |
| 8 | 8 |
| 9 $cfg[:standalone] = true if $cfg[:standalone].nil? | |
| 10 | |
| 11 $cfg[:bundler_groups] ||= [ :default, env ] | |
| 12 $cfg[:bundler_groups] << "standalone" if $cfg[:standalone] | |
| 13 | |
| 14 $cfg.freeze | 9 $cfg.freeze |
