Sha256: f994c1e32880ae8c76fafe6b03b9bb57f35f5892f6df2bcfe1ef54ff0cfc8234

Contents?: true

Size: 166 Bytes

Versions: 4

Compression:

Stored size: 166 Bytes

Contents

# frozen_string_literal: true

class AttachmentFile < Asset
  sunrise_uploader AttachmentFileUploader

  validates_filesize_of :data, maximum: 100.megabytes.to_i
end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
sunrise-cms-1.1.1 lib/generators/sunrise/templates/models/active_record/attachment_file.rb
sunrise-cms-1.1.1 lib/generators/sunrise/templates/models/mongoid/attachment_file.rb
sunrise-cms-1.1.0 lib/generators/sunrise/templates/models/active_record/attachment_file.rb
sunrise-cms-1.1.0 lib/generators/sunrise/templates/models/mongoid/attachment_file.rb