Class: ActiveAdmin::Filters::FormBuilder
- Inherits:
-
ActiveAdmin::FormBuilder
- Object
- Formtastic::FormBuilder
- ActiveAdmin::FormBuilder
- ActiveAdmin::Filters::FormBuilder
- Includes:
- FormtasticAddons
- Defined in:
- lib/active_admin/filters/forms.rb
Overview
This form builder defines methods to build filter forms such as the one found in the sidebar of the index page of a standard resource.
Instance Attribute Summary
Attributes inherited from ActiveAdmin::FormBuilder
Instance Method Summary collapse
Methods included from FormtasticAddons
#column, #column_for, #has_predicate?, #humanized_method_name, #klass, #polymorphic_foreign_type?, #reflection_for, #scope?, #searchable_has_many_through?, #seems_searchable?
Methods inherited from ActiveAdmin::FormBuilder
Instance Method Details
#filter(method, options = {}) ⇒ Object
13 14 15 16 17 |
# File 'lib/active_admin/filters/forms.rb', line 13 def filter(method, = {}) if method.present? && [:as] ||= default_input_type(method) template.concat input(method, ) end end |