class Report

Public Instance Methods

content_type_disp() click to toggle source
# 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() click to toggle source

is_display — 是否显示 title — 标题 content_type — 类型 1:声音/专辑 /2:评论

# File lib/ting_model/report.rb, line 13
def is_display_disp
  case self.is_display
    when true
      "显示"
    when false
      "不显示"
    else
      ""
  end
end