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

9 lines
271 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# CAD file attached to a project documentation
2015-05-05 03:10:25 +02:00
class ProjectCao < Asset
mount_uploader :attachment, ProjectCaoUploader
validates :attachment, file_size: { maximum: Rails.application.secrets.max_cao_size&.to_i || 5.megabytes.to_i }
2015-05-05 03:10:25 +02:00
end