webmcp

annotate demo-app/app/main/_prefork/01-models.lua @ 262:c3d539e33710

Replaced request.add_initializer(...) and request.add_variable(...) with request.for_each(...) and request.configure(...) which both execute the passed function once in any case when being called
author jbe
date Tue Mar 17 11:42:34 2015 +0100 (2015-03-17)
parents 2169a62e12f5
children
rev   line source
jbe@254 1 function mondelefant.class_prototype:by_id(id)
jbe@254 2 return self:new_selector()
jbe@254 3 :add_where{ "id = ?", id }
jbe@254 4 :optional_object_mode()
jbe@254 5 :exec()
jbe@254 6 end
jbe@254 7 execute.inner()

Impressum / About Us