1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-12 23:09:03 +01:00
fab-manager/app/models/project_image.rb

10 lines
252 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# Main image for project documentation
2015-05-05 03:10:25 +02:00
class ProjectImage < Asset
include ImageValidatorConcern
2015-05-05 03:10:25 +02:00
mount_uploader :attachment, ProjectImageUploader
validates :attachment, file_mime_type: { content_type: /image/ }
2015-05-05 03:10:25 +02:00
end