Class: ProfileFieldTypes::Study
- Inherits:
-
ProfileField
- Object
- ActiveRecord::Base
- ProfileField
- ProfileFieldTypes::Study
- Defined in:
- app/models/profile_field_types/study.rb
Overview
Studies Information
Class Method Summary collapse
Instance Method Summary collapse
-
#label ⇒ Object
If the single study has no label, just say ‘Study’.
Methods inherited from ProfileField
#children_count, #delete_cache, #display_html, #key, #orig_profileable, possible_types, #profileable, #underscored_type, #value
Methods inherited from ActiveRecord::Base
Class Method Details
.model_name ⇒ Object
6 |
# File 'app/models/profile_field_types/study.rb', line 6 def self.model_name; ProfileField.model_name; end |
Instance Method Details
#label ⇒ Object
If the single study has no label, just say ‘Study’.
12 13 14 |
# File 'app/models/profile_field_types/study.rb', line 12 def label super || I18n.translate( :study, default: "Study" ) end |