Class: Report

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/ting_model/report.rb

Instance Method Summary collapse

Instance Method Details

#content_type_dispObject



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_dispObject



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