Class: EducodeSales::Common
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- EducodeSales::Common
- Defined in:
- app/models/educode_sales/common.rb
Constant Summary collapse
- XTYPE =
"x_class"
- OTYPE =
'o_class'
- ATYPE =
'a_class'
- BTYPE =
'b_class'
- CTYPE =
'c_class'
- DTYPE =
'd_class'
- ETYPE =
'e_class'
Class Method Summary collapse
- .job_type_name ⇒ Object
- .key_attitude_name ⇒ Object
- .teacher_attitude_name ⇒ Object
- .teacher_source_name ⇒ Object
Class Method Details
.job_type_name ⇒ Object
32 33 34 |
# File 'app/models/educode_sales/common.rb', line 32 def self.job_type_name self.where(clazz: 'staff_type').pluck(:id, :name).to_h end |
.key_attitude_name ⇒ Object
40 41 42 |
# File 'app/models/educode_sales/common.rb', line 40 def self.key_attitude_name self.where(clazz: 'key_attitude').pluck(:id, :name).to_h end |
.teacher_attitude_name ⇒ Object
44 45 46 |
# File 'app/models/educode_sales/common.rb', line 44 def self.teacher_attitude_name self.where(clazz: 'teacher_attitude').pluck(:id, :name).to_h end |
.teacher_source_name ⇒ Object
36 37 38 |
# File 'app/models/educode_sales/common.rb', line 36 def self.teacher_source_name self.where(clazz: 'teacher_source').pluck(:id, :name).to_h end |