Class: ProfileFieldTypes::Description

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

Overview

Description Field

This fields are used to display any kind of free-text descriptive 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

#readonly?

Class Method Details

.model_nameObject



8
# File 'app/models/profile_field_types/description.rb', line 8

def self.model_name; ProfileField.model_name; end

Instance Method Details

#display_htmlObject



10
11
12
# File 'app/models/profile_field_types/description.rb', line 10

def display_html
  ActionController::Base.helpers.simple_format self.value
end