中文报错

This commit is contained in:
guange 2015-12-17 15:44:17 +08:00
parent fc63dfcb7b
commit 923cb3c84f
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#coding=utf-8
class AtMessage < ActiveRecord::Base
belongs_to :user
belongs_to :sender, class_name: "User", foreign_key: "sender_id"