Sha256: 9580bbd3a60b018f4e7b387d449ab3cfb92971bf34c7c6c1a9212a62f80d8ba9

Contents?: true

Size: 236 Bytes

Versions: 19

Compression:

Stored size: 236 Bytes

Contents

# frozen_string_literal: true

module Shimmer
  module Form
    class ImageField < Field
      self.type = :image

      def render
        builder.file_field method, options.reverse_merge(accept: "image/*")
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
shimmer-0.0.41 lib/shimmer/form/image_field.rb
shimmer-0.0.40 lib/shimmer/form/image_field.rb
shimmer-0.0.39 lib/shimmer/form/image_field.rb
shimmer-0.0.38 lib/shimmer/form/image_field.rb
shimmer-0.0.37 lib/shimmer/form/image_field.rb
shimmer-0.0.36 lib/shimmer/form/image_field.rb
shimmer-0.0.35 lib/shimmer/form/image_field.rb
shimmer-0.0.34 lib/shimmer/form/image_field.rb
shimmer-0.0.33 lib/shimmer/form/image_field.rb
shimmer-0.0.32 lib/shimmer/form/image_field.rb
shimmer-0.0.31 lib/shimmer/form/image_field.rb
shimmer-0.0.30 lib/shimmer/form/image_field.rb
shimmer-0.0.29 lib/shimmer/form/image_field.rb
shimmer-0.0.28 lib/shimmer/form/image_field.rb
shimmer-0.0.27 lib/shimmer/form/image_field.rb
shimmer-0.0.26 lib/shimmer/form/image_field.rb
shimmer-0.0.25 lib/shimmer/form/image_field.rb
shimmer-0.0.24 lib/shimmer/form/image_field.rb
shimmer-0.0.23 lib/shimmer/form/image_field.rb