class ActiveAdmin::Inputs::Filters::CheckBoxesInput
Public Instance Methods
Source
# File lib/active_admin/inputs/filters/check_boxes_input.rb, line 25 def choice_label(choice) " " + super end
Add whitespace before label
Calls superclass method
Source
# File lib/active_admin/inputs/filters/check_boxes_input.rb, line 35 def choice_wrapping(html_options, &block) template.capture(&block) end
Don’t wrap in LI tag
Source
# File lib/active_admin/inputs/filters/check_boxes_input.rb, line 30 def choices_group_wrapping(&block) template.capture(&block) end
Don’t wrap in UL tag
Source
# File lib/active_admin/inputs/filters/check_boxes_input.rb, line 8 def input_name "#{object_name}[#{searchable_method_name}_in][]" end
Source
# File lib/active_admin/inputs/filters/check_boxes_input.rb, line 16 def searchable_method_name if searchable_has_many_through? "#{reflection.through_reflection.name}_#{reflection.foreign_key}" else association_primary_key || method end end
Source
# File lib/active_admin/inputs/filters/check_boxes_input.rb, line 12 def selected_values @object.public_send("#{searchable_method_name}_in") || [] end