Sha256: c367ffcb9b9912d4cd0f41ab772aa5693671d7a05e131ed21c6c45e3cb374a61
Contents?: true
Size: 354 Bytes
Versions: 21
Compression:
Stored size: 354 Bytes
Contents
# frozen_string_literal: true module Shimmer module Form class PdfField < Field self.type = :pdf class << self def can_handle?(method) method.to_s.end_with?("pdf") end end def render builder.file_field method, options.reverse_merge(accept: "application/pdf") end end end end
Version data entries
21 entries across 21 versions & 1 rubygems