summaryrefslogtreecommitdiffstats
path: root/acf/model/root.lua
diff options
context:
space:
mode:
Diffstat (limited to 'acf/model/root.lua')
-rw-r--r--acf/model/root.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/acf/model/root.lua b/acf/model/root.lua
index 2d3b2a0..a793c75 100644
--- a/acf/model/root.lua
+++ b/acf/model/root.lua
@@ -57,6 +57,7 @@ function topology(addr, create)
end
function register(name, field, params)
+ if not params then params = {} end
params.create = true
RootModel[name] = model.to_field(field, params)