Class: AbAdmin::Views::Inputs::TreeSelectInput
- Inherits:
-
SimpleForm::Inputs::CollectionSelectInput
- Object
- SimpleForm::Inputs::CollectionSelectInput
- AbAdmin::Views::Inputs::TreeSelectInput
- Defined in:
- lib/ab_admin/views/inputs/tree_select_input.rb
Instance Method Summary collapse
Instance Method Details
#input ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/ab_admin/views/inputs/tree_select_input.rb', line 5 def input [:collection] ||= begin collection_class = .delete(:collection_class) || object.class object.nested_opts(collection_class.all) end [:collection] ||= [] super end |