-
Notifications
You must be signed in to change notification settings - Fork 226
Expand file tree
/
Copy pathconfig.exs
More file actions
26 lines (22 loc) · 811 Bytes
/
config.exs
File metadata and controls
26 lines (22 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
import Config
# By default, the umbrella project as well as each child
# application will require this configuration file, ensuring
# they all use the same configuration. While one could
# configure all applications here, we prefer to delegate
# back to each application for organization purposes.
# import_config "../apps/*/config/config.exs"
# Sample configuration (overrides the imported configuration above):
#
# config :logger, :console,
# level: :info,
# format: "$date $time [$level] $metadata$message\n",
# metadata: [:user_id]
env_bool = fn name ->
enabled_str =
name
|> System.get_env("false")
|> String.downcase()
enabled_str == "true"
end