Class: CustomAttributes::TextFieldType

Inherits:
Unbounded show all
Includes:
Singleton
Defined in:
lib/custom_attributes/field_types/text_field_type.rb

Instance Method Summary collapse

Methods inherited from Unbounded

#validate_single_value

Methods inherited from FieldType

#after_save_custom_value, available_types, #before_custom_field_save, #cast_custom_value, #cast_single_value, #cast_value, find, #label, #name, #possible_custom_value_options, #possible_values_options, #set_custom_field_value, #validate_custom_field, #validate_custom_value, #validate_single_value, #value_from_keyword

Instance Method Details

#edit_tag(view, tag_id, tag_name, custom_value, options = {}) ⇒ Object



5
6
7
# File 'lib/custom_attributes/field_types/text_field_type.rb', line 5

def edit_tag(view, tag_id, tag_name, custom_value, options={})
  view.text_area_tag(tag_name, custom_value.value, options.merge(:id => tag_id, :rows => 8))
end