You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
module RepositoriesHelper
|
|
def render_decode64_content(str)
|
|
return nil if str.blank?
|
|
Base64.decode64(str)
|
|
end
|
|
|
|
def download_type(str)
|
|
default_type = %w(xlsx xls ppt pptx pdf zip 7z rar exe)
|
|
default_type.include?(str)
|
|
end
|
|
end
|