Class: Symphonia::ModelAttributes::TextAttribute

Inherits:
Attribute show all
Defined in:
lib/symphonia/model_attributes/attribute.rb

Instance Attribute Summary

Attributes inherited from Attribute

#filter, #format_options, #name, #options, #sort_column

Instance Method Summary collapse

Methods inherited from Attribute

#default?, #filter?, #format, #initialize, #input_options, #required?, #sort=, #sort?, #title, #value

Constructor Details

This class inherits a constructor from Symphonia::ModelAttributes::Attribute

Instance Method Details

#format_value(view, value, entity) ⇒ Object



85
86
87
# File 'lib/symphonia/model_attributes/attribute.rb', line 85

def format_value(view, value, entity)
  view.format_text(value)
end

#input_fieldObject



89
90
91
# File 'lib/symphonia/model_attributes/attribute.rb', line 89

def input_field
  :text_area
end