Sha256: 5e6136a4a710a8e8b4000a4b22c10d0b534865cdae54fedf8f6c90dbc6b47dba

Contents?: true

Size: 527 Bytes

Versions: 12

Compression:

Stored size: 527 Bytes

Contents

module KonoUtils
  module Object
    module Cell
      module Forms # namespace
        module Fields
          #
          # Classe per la gestione del campo collection
          class Collection < Base

            # @return [Hash]
            def base_field_options
              super.merge(as: :select, collection: collection)
            end

            # @return [Array,Hash]
            def collection
              options.fetch(:collection, [])
            end

          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kono_utils_bootstrap_view4-0.3.2 app/concepts/kono_utils/object/cell/forms/fields/collection.rb
kono_utils_bootstrap_view4-0.3.1 app/concepts/kono_utils/object/cell/forms/fields/collection.rb
kono_utils_bootstrap_view4-0.3 app/concepts/kono_utils/object/cell/forms/fields/collection.rb
kono_utils_bootstrap_view4-0.2.3 app/concepts/kono_utils/object/cell/forms/fields/collection.rb
kono_utils_bootstrap_view4-0.2.2 app/concepts/kono_utils/object/cell/forms/fields/collection.rb
kono_utils_bootstrap_view4-0.2.1 app/concepts/kono_utils/object/cell/forms/fields/collection.rb
kono_utils_bootstrap_view4-0.2 app/concepts/kono_utils/object/cell/forms/fields/collection.rb
kono_utils_bootstrap_view4-0.1.2 app/concepts/kono_utils/object/cell/forms/fields/collection.rb
kono_utils_bootstrap_view4-0.1.1 app/concepts/kono_utils/object/cell/forms/fields/collection.rb
kono_utils_bootstrap_view4-0.1.0 app/concepts/kono_utils/object/cell/forms/fields/collection.rb
kono_utils_bootstrap_view4-0.1.0.pre.rc.7 app/concepts/kono_utils/object/cell/forms/fields/collection.rb
kono_utils_bootstrap_view4-0.1.0.pre.rc.4 app/concepts/kono_utils/object/cell/forms/fields/collection.rb