Sha256: 66d0c67cd0f31dee9fa369ff6719319818a2a2698e283a012b82cdbb17053acf

Contents?: true

Size: 337 Bytes

Versions: 11

Compression:

Stored size: 337 Bytes

Contents

require 'simple_form'

module SimpleForm
  module Inputs
    class UploaderInput < ::SimpleForm::Inputs::Base
      def input(wrapper_options = nil)
        merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)
        @builder.uploader_field(attribute_name, merged_input_options)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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