Sha256: 10a43a1e1ffa90123e23fea434a1ab2d1f9df4f5c22d0bcff450731459c878dd

Contents?: true

Size: 140 Bytes

Versions: 94

Compression:

Stored size: 140 Bytes

Contents

class AttachmentFile < Asset
  sunrise_uploader AttachmentFileUploader
  
  validates_filesize_of :data, :maximum => 100.megabytes.to_i
end

Version data entries

94 entries across 42 versions & 1 rubygems

Version Path
sunrise-cms-0.7.0.rc2 lib/generators/sunrise/templates/models/active_record/attachment_file.rb
sunrise-cms-0.7.0.rc2 lib/generators/sunrise/templates/models/mongoid/attachment_file.rb
sunrise-cms-0.7.0.rc1 lib/generators/sunrise/templates/models/active_record/attachment_file.rb
sunrise-cms-0.7.0.rc1 lib/generators/sunrise/templates/models/mongoid/attachment_file.rb
sunrise-cms-0.6.11 lib/generators/sunrise/templates/models/mongoid/attachment_file.rb
sunrise-cms-0.6.11 lib/generators/sunrise/templates/models/active_record/attachment_file.rb
sunrise-cms-0.6.10 lib/generators/sunrise/templates/models/active_record/attachment_file.rb
sunrise-cms-0.6.10 lib/generators/sunrise/templates/models/mongoid/attachment_file.rb
sunrise-cms-0.6.9 lib/generators/sunrise/templates/models/active_record/attachment_file.rb
sunrise-cms-0.6.9 lib/generators/sunrise/templates/models/mongoid/attachment_file.rb
sunrise-cms-0.6.8 lib/generators/sunrise/templates/models/mongoid/attachment_file.rb
sunrise-cms-0.6.8 lib/generators/sunrise/templates/models/active_record/attachment_file.rb
sunrise-cms-0.6.7 lib/generators/sunrise/templates/models/active_record/attachment_file.rb
sunrise-cms-0.6.7 lib/generators/sunrise/templates/models/mongoid/attachment_file.rb
sunrise-cms-0.6.6 lib/generators/sunrise/templates/models/mongoid/attachment_file.rb
sunrise-cms-0.6.6 lib/generators/sunrise/templates/models/active_record/attachment_file.rb
sunrise-cms-0.6.5 lib/generators/sunrise/templates/models/mongoid/attachment_file.rb
sunrise-cms-0.6.5 spec/tmp/app/models/defaults/attachment_file.rb
sunrise-cms-0.6.5 lib/generators/sunrise/templates/models/active_record/attachment_file.rb
sunrise-cms-0.6.4 lib/generators/sunrise/templates/models/active_record/attachment_file.rb