1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/models/project_step_image.rb
Sylvain 48b811d2b5 Added freeCAD files as default allowed extensions
also: refactored some ruby code
2019-11-25 16:12:23 +01:00

10 lines
266 B
Ruby

# frozen_string_literal: true
# Images for the documentation of a project step
class ProjectStepImage < Asset
include ImageValidatorConcern
mount_uploader :attachment, ProjectImageUploader
validates :attachment, file_mime_type: { content_type: /image/ }
end