Commit 98f945f6 authored by François Perrad's avatar François Perrad

luacheck 0.10.0

parent d4c5e4d2
......@@ -16,7 +16,7 @@ local sqlite3 = require 'lsqlite3'
local error = Coat.error
local argerror = Coat.argerror
local checktype = Coat.checktype
local class = Coat.class
local cclass = Coat.class
local has = Coat.has
local setfenv = Coat.setfenv
local type = Coat.type
......@@ -294,7 +294,7 @@ function _G.persistent (modname, options)
checktype('persistent', 2, options, 'table')
local primary_key = options.primary_key or 'id'
local table_name = options.table_name or modname:gsub('%.', '_')
local M = class(modname)
local M = cclass(modname)
M._PRIMARY_KEY = primary_key
M._TABLE_NAME = table_name:lower()
M._ATTR_P = { primary_key }
......
......@@ -16,7 +16,7 @@ local dado = require 'dado.sql'
local error = Coat.error
local argerror = Coat.argerror
local checktype = Coat.checktype
local class = Coat.class
local cclass = Coat.class
local has = Coat.has
local setfenv = Coat.setfenv
local type = Coat.type
......@@ -307,7 +307,7 @@ function _G.persistent (modname, options)
checktype('persistent', 2, options, 'table')
local primary_key = options.primary_key or 'id'
local table_name = options.table_name or modname:gsub('%.', '_')
local M = class(modname)
local M = cclass(modname)
M._PRIMARY_KEY = primary_key
M._TABLE_NAME = table_name:lower()
M._ATTR_P = { primary_key }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment