danbooru_default_config.rb: allow setting boolean options in env vars.
Allow setting e.g. `aws_s3_enabled?` with DANBOORU_AWS_S3_ENABLED="true" in the .env file.
This commit is contained in:
@@ -752,7 +752,7 @@ module Danbooru
|
|||||||
end
|
end
|
||||||
|
|
||||||
def method_missing(method, *args)
|
def method_missing(method, *args)
|
||||||
var = ENV["DANBOORU_#{method.to_s.upcase}"]
|
var = ENV["DANBOORU_#{method.to_s.upcase.chomp("?")}"]
|
||||||
|
|
||||||
if var.present?
|
if var.present?
|
||||||
var
|
var
|
||||||
|
|||||||
Reference in New Issue
Block a user