Sha256: b35e9c8d59e093cb3b09e4b042d961289a47603823f7694c3ecbe30cf67fa90a

Contents?: true

Size: 221 Bytes

Versions: 3

Compression:

Stored size: 221 Bytes

Contents

module Granite
  module Form
    module Types
      class Collection < HasSubtype
        def prepare(value)
          ::Array.wrap(value).map { |v| subtype_definition.prepare(v) }
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
granite-form-0.6.0 lib/granite/form/types/collection.rb
granite-form-0.5.0 lib/granite/form/types/collection.rb
granite-form-0.4.0 lib/granite/form/types/collection.rb