Merge pull request #768 from pwaller/patch-1

Give (*ModelStruct).TableName() a pointer receiver
This commit is contained in:
Jinzhu 2015-12-24 08:22:35 +08:00
commit 4a821a5bef
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}