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.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/acf/model/root.lua b/acf/model/root.lua
index da15411..d17f8a9 100644
--- a/acf/model/root.lua
+++ b/acf/model/root.lua
@@ -25,9 +25,9 @@ function RootModel:has_permission(user, permission)
end
function RootModel:meta(path)
- local obj = self:search(path, true)
+ local obj = self:fetch(path, true)
if object.isinstance(obj, node.TreeNode) then return node.meta(obj) end
- return node.mmeta(self:search(pth.parent(path), true), pth.name(path))
+ return node.mmeta(self:fetch(pth.parent(path), true), pth.name(path))
end
@@ -62,7 +62,7 @@ function register(name, field, params)
local root = RootModel()
- for _, record in ipairs(node.topology(root:search(name))) do
+ for _, record in ipairs(node.topology(root:fetch(name))) do
local top = topology(record.addr, true)
setdefault(top, 'order', order)
@@ -80,7 +80,7 @@ function register(name, field, params)
set(
'scope',
node.addr(
- root:search(
+ root:fetch(
pth.to_absolute(record.scope, pth.parent(record.path))
)
)