Sha256: 0e8b4cd91db18c51f8eef27eeb3356239469280281a3251870298d2fc61b0e49

Contents?: true

Size: 243 Bytes

Versions: 8

Compression:

Stored size: 243 Bytes

Contents

require "simple_form"

class SimpleFormUploaderInput < SimpleForm::Inputs::Base
  def input
    @builder.uploader_field(attribute_name, input_html_options)
  end
end

::SimpleForm::FormBuilder.map_type :uploader, :to => SimpleFormUploaderInput

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
glebtv-rails-uploader-0.4.1 lib/uploader/hooks/simple_form.rb
glebtv-rails-uploader-0.4.0 lib/uploader/hooks/simple_form.rb
glebtv-rails-uploader-0.3.0 lib/uploader/hooks/simple_form.rb
glebtv-rails-uploader-0.2.0 lib/uploader/hooks/simple_form.rb
glebtv-rails-uploader-0.1.3 lib/uploader/hooks/simple_form.rb
glebtv-rails-uploader-0.1.2 lib/uploader/hooks/simple_form.rb
glebtv-rails-uploader-0.1.1 lib/uploader/hooks/simple_form.rb
glebtv-rails-uploader-0.0.8 lib/uploader/hooks/simple_form.rb