Class: Sms

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

Instance Method Summary collapse

Instance Method Details

#msg_type_displayObject



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/ting_model/sms.rb', line 6

def msg_type_display
	case self.msg_type
	when 2
		"修改密码"
	when 3
		"绑定"
  when 4
    "注册"
	else
		""
	end		
end