wip exercise to task implementation

This commit is contained in:
Karol
2019-08-29 18:31:32 +02:00
parent 8c306669af
commit c006bc3dc8
5 changed files with 166 additions and 17 deletions

View File

@ -53,7 +53,7 @@ module ProformaService
hidden: file.visible == 'no',
name: File.basename(file.filename, '.*'),
read_only: file.usage_by_lms != 'edit',
role: file.internal_description.underscore.gsub(' ', '_'),
role: file.internal_description,
path: File.dirname(file.filename)
}.tap do |params|
if file.binary