mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
48b811d2b5
also: refactored some ruby code
10 lines
252 B
Ruby
10 lines
252 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Main image for project documentation
|
|
class ProjectImage < Asset
|
|
include ImageValidatorConcern
|
|
mount_uploader :attachment, ProjectImageUploader
|
|
|
|
validates :attachment, file_mime_type: { content_type: /image/ }
|
|
end
|