webmcp
view framework/env/request/set_404_route.lua @ 438:ea8419658535
Another change to make <db_object>:try_save() work properly with "document_column"
(use "_col" proxy also for accessing self._col[primary_key.json_doc])
(use "_col" proxy also for accessing self._col[primary_key.json_doc])
| author | jbe | 
|---|---|
| date | Wed Jan 20 21:06:07 2016 +0100 (2016-01-20) | 
| parents | c3d539e33710 | 
| children | 
 line source
     1 --[[--
     2 request.set_404_route{
     3   module = module,  -- module name
     4   view   = view     -- view name
     5 }
     7 In case a view or action is not found, the given module and view will be used to display an error page.
     9 --]]--
    11 function request.set_404_route(tbl)
    12   request.configure(function()
    13     request._404_route = tbl  -- TODO: clone?
    14   end)
    15 end
