Class: NestedSelectInput

Inherits:
ActiveAdminAddons::InputBase show all
Defined in:
app/inputs/nested_select_input.rb

Instance Method Summary collapse

Methods inherited from ActiveAdminAddons::InputBase

#concat, #input_html_options, #load_control_attributes, #load_input_class, #parts, #parts_to_html, #render_custom_input

Methods included from ActiveAdminAddons::InputHtmlHelpers

#build_hidden_control, #build_separator, #empty_input_id, #method_to_input_array_name, #method_to_input_id, #method_to_input_name, #prefixed_method, #selected_values_id

Methods included from ActiveAdminAddons::InputMethods

#association_name, #input_association_value, #input_related_items, #input_value, #method_model, #model_name, #object_class, #tableize_method, #translated_method, #url_from_method, #valid_method, #valid_object

Methods included from ActiveAdminAddons::InputOptionsHandler

#attr_options, #control_attributes, #css_classes, #data_attr_options, #get_data_attr_value, #load_attr, #load_class, #load_data_attr

Instance Method Details

#to_htmlObject



2
3
4
5
# File 'app/inputs/nested_select_input.rb', line 2

def to_html
  for_each_level { |attribute, data| concat(builder.input(attribute, level_options(data))) }
  parts_to_html
end