class ActiveAdmin::Inputs::FilterCheckBoxesInput

Public Instance Methods

choice_label(choice) click to toggle source

Add whitespace before label

Calls superclass method
# File lib/active_admin/inputs/filter_check_boxes_input.rb, line 23
def choice_label(choice)
  ' ' + super
end
choice_wrapping(html_options, &block) click to toggle source

Don’t wrap in LI tag

# File lib/active_admin/inputs/filter_check_boxes_input.rb, line 33
def choice_wrapping(html_options, &block)
  template.capture(&block)
end
choices_group_wrapping(&block) click to toggle source

Don’t wrap in UL tag

# File lib/active_admin/inputs/filter_check_boxes_input.rb, line 28
def choices_group_wrapping(&block)
  template.capture(&block)
end
hidden_field_for_all() click to toggle source

Don’t render hidden fields

# File lib/active_admin/inputs/filter_check_boxes_input.rb, line 38
def hidden_field_for_all
  ""
end
hidden_fields?() click to toggle source

Don’t render hidden fields

# File lib/active_admin/inputs/filter_check_boxes_input.rb, line 43
def hidden_fields?
  false
end
input_name() click to toggle source
# File lib/active_admin/inputs/filter_check_boxes_input.rb, line 6
def input_name
  "#{object_name}[#{searchable_method_name}_in][]"
end
searchable_method_name() click to toggle source
# File lib/active_admin/inputs/filter_check_boxes_input.rb, line 14
def searchable_method_name
  if searchable_has_many_through?
    "#{reflection.through_reflection.name}_#{reflection.foreign_key}"
  else
    association_primary_key || method
  end
end
selected_values() click to toggle source
# File lib/active_admin/inputs/filter_check_boxes_input.rb, line 10
def selected_values
  @object.send("#{searchable_method_name}_in") || []
end