Sha256: e5c3f34e5abf226bbc9d3c83fffc28d36d60d32eb39fb6e17a972374f6843713

Contents?: true

Size: 389 Bytes

Versions: 3

Compression:

Stored size: 389 Bytes

Contents

module FileUpload
  module BuilderMixin

    def multiple_file_upload(field, options = {}, &block)
      @template.multiple_file_upload_field(@object_name, field, @object.send(field).to_a, options, &block)
    end

    def single_file_upload(field, options = {}, &block)
      @template.single_file_upload_field(@object_name, field, @object.send(field), options, &block)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
file_upload-0.0.3 app/models/file_upload/builder_mixin.rb
file_upload-0.0.2 app/models/file_upload/builder_mixin.rb
file_upload-0.0.1 app/models/file_upload/builder_mixin.rb