summaryrefslogtreecommitdiffstats
path: root/acf2/model/model.lua
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2013-11-15 23:25:05 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2013-11-15 23:25:05 +0200
commit5ead07af9d4d20f716dd1eb77ba5250c576b4814 (patch)
tree58bbd81ae06dd8738128a14fd98949d6835c7454 /acf2/model/model.lua
parentc1d578649beaa0a851756da5154f4c17c202a826 (diff)
downloadaconf-5ead07af9d4d20f716dd1eb77ba5250c576b4814.tar.bz2
aconf-5ead07af9d4d20f716dd1eb77ba5250c576b4814.tar.xz
model: invoke model-specific validation method
Diffstat (limited to 'acf2/model/model.lua')
-rw-r--r--acf2/model/model.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/acf2/model/model.lua b/acf2/model/model.lua
index 46f0c4d..0867fe6 100644
--- a/acf2/model/model.lua
+++ b/acf2/model/model.lua
@@ -205,6 +205,7 @@ function M.Model:init(context)
else f:_save() end
end
end
+ if self.validate then self:validate() end
end
if self.has_permission then