Sha256: 4010d3fbcbd1076fd5d92bf258e68e6562478929336df7905976963a2cc14251

Contents?: true

Size: 224 Bytes

Versions: 4

Compression:

Stored size: 224 Bytes

Contents

# encoding: utf-8

require 'formtastic'

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
glebtv-rails-uploader-0.4.1 lib/uploader/hooks/formtastic.rb
glebtv-rails-uploader-0.4.0 lib/uploader/hooks/formtastic.rb
glebtv-rails-uploader-0.3.0 lib/uploader/hooks/formtastic.rb
glebtv-rails-uploader-0.2.0 lib/uploader/hooks/formtastic.rb