Sha256: 5045a76dc0238e14fbb5e4bd8cade198d7194d3d8d131fb5e9b66ffa9a40eb9c

Contents?: true

Size: 269 Bytes

Versions: 5

Compression:

Stored size: 269 Bytes

Contents

class Admin < ApplicationRecord
  # Single attachment support
  mount_uploader :avatar, AvatarUploader
  process_in_background :avatar

  # Multi attachment support
  mount_uploaders :images, AvatarUploader
  process_in_background :images
  serialize :images, JSON
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
carrierwave_backgrounder-1.0.2 spec/support/dummy_app/app/models/admin.rb
carrierwave_backgrounder-1.0.1 spec/support/dummy_app/app/models/admin.rb
carrierwave_backgrounder-1.0.0 spec/support/dummy_app/app/models/admin.rb
carrierwave_backgrounder-1.0.0.beta.2 spec/support/dummy_app/app/models/admin.rb
carrierwave_backgrounder-1.0.0.beta spec/support/dummy_app/app/models/admin.rb