Class: CustomAttributes::List

Inherits:
FieldType show all
Defined in:
lib/custom_attributes/field_types/list.rb

Direct Known Subclasses

BoolFieldType, ListFieldType

Instance Method Summary collapse

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
8
9
10
11
# File 'lib/custom_attributes/field_types/list.rb', line 5

def edit_tag(view, tag_id, tag_name, custom_value, options = {})
  if custom_value.custom_field.edit_tag_style == 'check_box'
    check_box_edit_tag(view, tag_id, tag_name, custom_value, options)
  else
    select_edit_tag(view, tag_id, tag_name, custom_value, options)
  end
end