Files
nairobi/app/helpers/documentables_helper.rb
Javi Martín d14f6691dc Return document max file size in megabytes
The same way it's done for images.

We were converting the number of megabytes to bytes and then converting
it to megabytes again. Instead, we can leave it as it is and only
convert it to bytes when necessary (only one place).
2021-09-11 17:05:00 +02:00

10 lines
274 B
Ruby

module DocumentablesHelper
def accepted_content_types(documentable_class)
documentable_class.accepted_content_types
end
def documentable_humanized_accepted_content_types(documentable_class)
Setting.accepted_content_types_for("documents").join(", ")
end
end