回调修改

This commit is contained in:
huang 2017-03-22 16:30:47 +08:00
parent aebdd278a5
commit 62fe591438
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
class Game < ActiveRecord::Base
# stauts 0: can exe 1doing 2successed 3:locked
default_scope :order => 'stage'
attr_accessible :description, :myshixun_id, :stage, :subject, :user_id, :status, :ready_knowledge, :task_pass, :answer, :score, :final_score
belongs_to :myshixun,:touch=> true
belongs_to :user