From 3d6dbf89390c58280b92d985493377b0bf744698 Mon Sep 17 00:00:00 2001 From: T Floyd Wright Date: Thu, 14 May 2026 08:11:50 -0800 Subject: [PATCH] fix: accept MFA tuple in css_overrides config schema The css_overrides schema rejected the {m, f, []} tuple form even though render_css/1 already branched on it, preventing callers from generating CSS dynamically per-render. Closes #140 --- lib/application.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/application.ex b/lib/application.ex index 76a9727b..b1c55dc7 100644 --- a/lib/application.ex +++ b/lib/application.ex @@ -7,7 +7,7 @@ defmodule LiveAdmin.Application do global_options_schema = LiveAdmin.base_configs_schema() ++ [ - css_overrides: [type: :string], + css_overrides: [type: {:or, [:string, {:tuple, [:atom, :atom, {:list, :any}]}]}], gettext_backend: [type: :atom], session_store: [type: :atom] ]