FIX decode file content

dev_forge
Jasder 5 years ago
parent cf5b03887e
commit cbe3ffa020

@ -1,2 +1,6 @@
module RepositoriesHelper
def render_decode64_content(str)
return nil if str.blank?
Base64.decode64(str)
end
end

@ -3,5 +3,5 @@ json.sha entry['sha']
json.path entry['path']
json.type entry['type']
json.size entry['size']
json.content entry['content']
json.content render_decode64_content(entry['content'])
json.target entry['target']

Loading…
Cancel
Save