Class: ProfileFieldTypes::Study

Inherits:
ProfileField show all
Defined in:
app/models/profile_field_types/study.rb

Overview

Studies Information

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ProfileField

#children_count, #delete_cache, #display_html, #key, #orig_profileable, possible_types, #profileable, #underscored_type, #value

Methods inherited from ActiveRecord::Base

#readonly?

Class Method Details

.model_nameObject



6
# File 'app/models/profile_field_types/study.rb', line 6

def self.model_name; ProfileField.model_name; end

Instance Method Details

#labelObject

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