Sha256: f9b23a1ad0a7ad4eb45ca6d3bda4274690df7c4151982047b7ee8b0dac61f21c

Contents?: true

Size: 264 Bytes

Versions: 5

Compression:

Stored size: 264 Bytes

Contents

class User < ApplicationRecord
  # Single attachment support
  mount_uploader :avatar, AvatarUploader
  store_in_background :avatar

  # Multi attachment support
  mount_uploaders :images, AvatarUploader
  store_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/user.rb
carrierwave_backgrounder-1.0.1 spec/support/dummy_app/app/models/user.rb
carrierwave_backgrounder-1.0.0 spec/support/dummy_app/app/models/user.rb
carrierwave_backgrounder-1.0.0.beta.2 spec/support/dummy_app/app/models/user.rb
carrierwave_backgrounder-1.0.0.beta spec/support/dummy_app/app/models/user.rb