Class: NestedLevelInput

Inherits:
ActiveAdminAddons::InputBase show all
Includes:
ActiveAdminAddons::SelectHelpers
Defined in:
app/inputs/nested_level_input.rb

Instance Method Summary collapse

Methods included from ActiveAdminAddons::SelectHelpers

#active_record_select?, #array_to_select_options, #collection_to_select_options, #initial_collection_to_select_options, #item_to_select_option, #selected_collection, #selected_item

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

Methods included from ActiveAdminAddons::InputMethods

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

Methods inherited from ActiveAdminAddons::InputBase

#concat, #input_html_options, #load_input_class, #parts, #parts_to_html, #to_html

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

Instance Method Details

#render_custom_inputObject



4
5
6
7
8
9
10
11
12
# File 'app/inputs/nested_level_input.rb', line 4

def render_custom_input
  concat(label_html)

  select_control = builder.select(
    method, initial_collection_to_select_options, {}, input_html_options
  )

  concat(select_control)
end