From 07a0eb180872401b271de40190603df8f3ab3db2 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Fri, 30 Jan 2015 00:09:23 +0200 Subject: specify search pattern for references --- aconf/model/root.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'aconf/model/root.lua') diff --git a/aconf/model/root.lua b/aconf/model/root.lua index d92ac2d..9b05488 100644 --- a/aconf/model/root.lua +++ b/aconf/model/root.lua @@ -1,5 +1,5 @@ --[[ -Copyright (c) 2012-2014 Kaarle Ritvanen +Copyright (c) 2012-2015 Kaarle Ritvanen See LICENSE file for license details --]] @@ -82,7 +82,10 @@ function M.register(name, field, params) root:fetch(pth.to_absolute(record.scope, pth.parent(record.path))) ) set('scope', scope) - table.insert(M.topology(scope, true).referrers, record.path) + table.insert( + M.topology(pth.rawjoin(scope, record.search), true).referrers, + record.path + ) end end end -- cgit v1.2.3