Sha256: 2f6d7574d219ac17845e71685005d561bb0764c99114b399f6b136910269e50b

Contents?: true

Size: 312 Bytes

Versions: 11

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

require 'formtastic'

module Formtastic
  module Inputs
    class UploaderInput
      include ::Formtastic::Inputs::Base

      def to_html
        input_wrapping do
          label_html << builder.uploader_field(method, input_html_options)
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rails-uploader-0.5.9 lib/uploader/hooks/formtastic.rb
rails-uploader-0.5.8 lib/uploader/hooks/formtastic.rb
rails-uploader-0.5.7 lib/uploader/hooks/formtastic.rb
rails-uploader-0.5.6 lib/uploader/hooks/formtastic.rb
rails-uploader-0.5.5 lib/uploader/hooks/formtastic.rb
rails-uploader-0.5.4 lib/uploader/hooks/formtastic.rb
rails-uploader-0.5.3 lib/uploader/hooks/formtastic.rb
rails-uploader-0.5.2 lib/uploader/hooks/formtastic.rb
rails-uploader-0.5.1 lib/uploader/hooks/formtastic.rb
rails-uploader-0.5.0 lib/uploader/hooks/formtastic.rb
rails-uploader-0.4.5 lib/uploader/hooks/formtastic.rb