Browse Source

直播增加级别限制

abiao 4 years ago
parent
commit
af72c5b4ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/live_broad.rb

+ 1 - 1
app/models/live_broad.rb

@@ -5,7 +5,7 @@ class LiveBroad < ActiveRecord::Base
     attr_accessor :v_cover
     before_save :before_save
     has_and_belongs_to_many :depart_record
-    serialize :rank_strs, Array
+    #serialize :rank_strs, string
     RANK_ENUM= [["普通会员","0"], ["群主","1"], ["店长", "2"], ["区域代理", "3"]]
     def roles_enum
       [ [ 'role one', 1 ], [ 'role 2', 2 ], [ 'role 3', 3 ] ]