Explorar o código

直播增加级别限制

abiao %!s(int64=4) %!d(string=hai) anos
pai
achega
cdbedb8086
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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, string
+    serialize :rank_strs, String
     RANK_ENUM= [["普通会员","0"], ["群主","1"], ["店长", "2"], ["区域代理", "3"]]
     def roles_enum
       [ [ 'role one', 1 ], [ 'role 2', 2 ], [ 'role 3', 3 ] ]