Class: KonoUtils::Object::Cell::Forms::Fields::Collection

Inherits:
Base
  • Object
show all
Defined in:
app/concepts/kono_utils/object/cell/forms/fields/collection.rb

Overview

Classe per la gestione del campo collection

Direct Known Subclasses

Enum

Instance Method Summary collapse

Methods inherited from Base

#_prefixes, #base_class, #concept, #content_for_layout, #content_for_layout?, #destroy_custom_polymorphic_path, #edit_custom_polymorphic_path, #index_custom_polymorphic_path, #kono_user, #legacy_concept, logger, #model_gender, #new_custom_polymorphic_path, #show_custom_polymorphic_path, #title_del, #title_del_g, #title_edit_g, #title_mod, #title_new, #title_new_g, #title_newa, #title_show_g

Methods included from KonoUtilsBootstrapView4::ApplicationIconHelper

#fa_icon, #icon

Instance Method Details

#base_field_optionsHash

Returns:

  • (Hash)


11
12
13
# File 'app/concepts/kono_utils/object/cell/forms/fields/collection.rb', line 11

def base_field_options
  super.merge(as: :select, collection: collection)
end

#collectionArray, Hash

Returns:

  • (Array, Hash)


16
17
18
# File 'app/concepts/kono_utils/object/cell/forms/fields/collection.rb', line 16

def collection
  options.fetch(:collection, [])
end