Class: ProfileFieldTypes::Email
- Inherits:
-
ProfileField
- Object
- ActiveRecord::Base
- ProfileField
- ProfileFieldTypes::Email
- Defined in:
- app/models/profile_field_types/email.rb
Overview
Email Contact Information
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from ProfileField
#children_count, #delete_cache, #key, #label, #orig_profileable, possible_types, #profileable, #underscored_type, #value
Methods inherited from ActiveRecord::Base
Class Method Details
.model_name ⇒ Object
8 |
# File 'app/models/profile_field_types/email.rb', line 8 def self.model_name; ProfileField.model_name; end |
Instance Method Details
#display_html ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/models/profile_field_types/email.rb', line 10 def display_html mail = self.value || "" if mail == "—" mail else ActionController::Base.helpers.mail_to mail end end |