Class: Report
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Report
- Defined in:
- lib/ting_model/report.rb
Instance Method Summary collapse
Instance Method Details
#content_type_disp ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/ting_model/report.rb', line 24 def content_type_disp case self.content_type when 1 "声音/专辑" when 2 "评论" end end |
#is_display_disp ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/ting_model/report.rb', line 13 def is_display_disp case self.is_display when true "显示" when false "不显示" else "" end end |