Class: App

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/subapp_model/app.rb

Constant Summary collapse

CONTENT_TYPES =
{MUTI_BOZHU: 1, SINGLE_PERSON: 2, SINGLE_ALBUM: 3, MUTI_CATEGORY: 4, SINGLE_CATEGORY: 5, ALL_CATEGORY: 6}

Instance Method Summary collapse

Instance Method Details

#content_type_dispObject

APP类型显示



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# File 'lib/subapp_model/app.rb', line 87

def content_type_disp
  case self.content_type
  when 1
    "多用户"
  when 2
    "单用户多专辑"
  when 3
    "单用户单专辑"
  when 4
    "多分类"
  when 5
    "单分类"
  when 6
    "全分类" 
  end
end

#envir_dispObject



104
105
106
107
108
109
110
111
# File 'lib/subapp_model/app.rb', line 104

def envir_disp
  case self.envir
  when true
    "测试"
  when false
    "开发"    
  end  
end