webmcp

view demo-app/app/main/_prefork/01-models.lua @ 398:ac9a4e1885da

Dropped compatibility code for Lua 5.1 (assume LUA_VERSION_NUM >= 502)
author jbe
date Thu Dec 10 17:27:53 2015 +0100 (2015-12-10)
parents 2169a62e12f5
children
line source
1 function mondelefant.class_prototype:by_id(id)
2 return self:new_selector()
3 :add_where{ "id = ?", id }
4 :optional_object_mode()
5 :exec()
6 end
7 execute.inner()

Impressum / About Us