wechat model完善

chenlw_dev
guange 10 years ago
parent 08e193ea3c
commit 571196ad2d

@ -179,6 +179,7 @@ class User < Principal
#####
has_many :shares ,:dependent => :destroy
has_one :user_wechat
# add by zjc
has_one :level, :class_name => 'UserLevels', :dependent => :destroy

@ -1,3 +1,6 @@
class UserWechat < ActiveRecord::Base
# attr_accessible :title, :body
attr_accessible :subscribe, :openid, :nickname, :sex, :language, :city, :province, :country,
:headimgurl, :subscribe_time, :unionid, :remark, :groupid, :user
belongs_to :user
end

Loading…
Cancel
Save