Sha256: 796888a7c15d4d7a2ba26902001427bd253a4ed2be02f30f768f6596cc399713

Contents?: true

Size: 281 Bytes

Versions: 10

Compression:

Stored size: 281 Bytes

Contents

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

10 entries across 10 versions & 1 rubygems

Version Path
rails-uploader-0.4.4 lib/uploader/hooks/formtastic.rb
rails-uploader-0.4.3 lib/uploader/hooks/formtastic.rb
rails-uploader-0.4.2 lib/uploader/hooks/formtastic.rb
rails-uploader-0.4.1 lib/uploader/hooks/formtastic.rb
rails-uploader-0.4.0 lib/uploader/hooks/formtastic.rb
rails-uploader-0.3.4 lib/uploader/hooks/formtastic.rb
rails-uploader-0.3.3 lib/uploader/hooks/formtastic.rb
rails-uploader-0.3.2 lib/uploader/hooks/formtastic.rb
rails-uploader-0.3.1 lib/uploader/hooks/formtastic.rb
rails-uploader-0.3.0 lib/uploader/hooks/formtastic.rb