From 499351fd1c1e7c1462df9a962e927fb4dba6b594 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Mon, 24 Mar 2014 02:54:06 +0200 Subject: model: ignore private Model fields/methods when fetching objects --- aconf/model/model.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aconf/model/model.lua') diff --git a/aconf/model/model.lua b/aconf/model/model.lua index e71e73c..3f90450 100644 --- a/aconf/model/model.lua +++ b/aconf/model/model.lua @@ -170,7 +170,7 @@ function M.Model:init(context) end end - return v + if options.private then return v end end if self.is_removable then -- cgit v1.2.3