summaryrefslogtreecommitdiffstats
path: root/acf/model/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'acf/model/init.lua')
-rw-r--r--acf/model/init.lua16
1 files changed, 2 insertions, 14 deletions
diff --git a/acf/model/init.lua b/acf/model/init.lua
index 71d0744..bf67f98 100644
--- a/acf/model/init.lua
+++ b/acf/model/init.lua
@@ -17,6 +17,8 @@ new = model.new
local to_field = model.to_field
node = require('acf.model.node')
+permission = require('acf.model.permission')
+register = require('acf.model.root').register
set = require('acf.model.set')
local object = require('acf.object')
@@ -32,8 +34,6 @@ require 'stringy'
-- TODO object-specific actions
--- TODO access control
-
local Primitive = class(Field)
@@ -220,15 +220,3 @@ function Mixed:save(context, value)
if type(value) == 'table' then super(self, Mixed):save(context, value)
else Primitive.save(self, context, value) end
end
-
-
-
-RootModel = new()
-
-function RootModel:init(txn)
- super(self, RootModel):init{txn=txn, path='/', addr='/volatile'}
-end
-
-function register(name, addr, field)
- RootModel[name] = to_field(field, addr)
-end