|
|
|
@ -57,7 +57,7 @@ class Shixun < ActiveRecord::Base
|
|
|
|
|
scope :visible, lambda{where(status: [2,3])}
|
|
|
|
|
scope :min, lambda { select([:id, :name, :gpid, :modify_time, :reset_time, :language, :propaedeutics, :status, :identifier,
|
|
|
|
|
:test_set_permission, :hide_code, :forbid_copy, :hidden, :webssh, :user_id, :code_hidden,
|
|
|
|
|
:task_pass, :exec_time, :multi_webssh]) }
|
|
|
|
|
:task_pass, :exec_time, :multi_webssh, :vnc]) }
|
|
|
|
|
scope :published, lambda{where(status: 2)}
|
|
|
|
|
scope :field_for_recommend, lambda{ select([:id, :name, :identifier, :myshixuns_count]) }
|
|
|
|
|
|
|
|
|
|