Sha256: 14f31d0eb10bf2460524bed341d68487061bf7bded3985179315bfb642bd8b2c

Contents?: true

Size: 281 Bytes

Versions: 2

Compression:

Stored size: 281 Bytes

Contents

class PagesController < ApplicationController

  def upload
    upload = attach_uploader
    upload.on_begin do |upload|
      upload.update_attributes(name: "begun")
    end
    upload.on_complete do |upload|
      upload.update_attributes(name: "completed")
    end
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
s3_multipart-0.0.4 spec/internal/app/controllers/pages_controller.rb
s3_multipart-0.0.3 spec/internal/app/controllers/pages_controller.rb