Class: App
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- App
- 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_disp ⇒ Object
APP类型显示
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/subapp_model/app.rb', line 85 def content_type_disp case self.content_type when 1 "多用户" when 2 "单用户多专辑" when 3 "单用户单专辑" when 4 "多分类" when 5 "单分类" when 6 "全分类" end end |
#envir_disp ⇒ Object
102 103 104 105 106 107 108 109 |
# File 'lib/subapp_model/app.rb', line 102 def envir_disp case self.envir when true "测试" when false "开发" end end |