mirror of https://github.com/go-gorm/gorm.git
Merge pull request #768 from pwaller/patch-1
Give (*ModelStruct).TableName() a pointer receiver
This commit is contained in:
commit
4a821a5bef
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue