mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
7 lines
248 B
Ruby
7 lines
248 B
Ruby
class ProjectCao < Asset
|
|
mount_uploader :attachment, ProjectCaoUploader
|
|
|
|
validates :attachment, file_size: { maximum: 20.megabytes.to_i }
|
|
validates :attachment, :file_mime_type => { :content_type => ENV['ALLOWED_MIME_TYPES'].split(' ') }
|
|
end
|