diff --git a/model_struct.go b/model_struct.go index 97d145b6..e98f0718 100644 --- a/model_struct.go +++ b/model_struct.go @@ -48,7 +48,7 @@ type ModelStruct struct { cached bool } -func (s ModelStruct) TableName(db *DB) string { +func (s *ModelStruct) TableName(db *DB) string { return DefaultTableNameHandler(db, s.defaultTableName) }