Skip to content

Commit

Permalink
Remove unused mime_type method and update link_to format in home/inde…
Browse files Browse the repository at this point in the history
…x.html.erb
  • Loading branch information
andrew committed Jan 30, 2024
1 parent 2a01f30 commit 5303b84
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions app/models/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,6 @@ def download_file(dir)
return Digest::SHA256.hexdigest File.read(path)
end

def mime_type(path)
IO.popen(
["file", "--brief", "--mime-type", path],
in: :close, err: :close
) { |io| io.read.chomp }
end

def working_directory(dir)
File.join([dir, basename])
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/home/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<div class="flex-grow-1 ms-3 text-break">
<h5 class='card-title'>
<%= link_to format, format, target: :_blank %>
<%= link_to format, '#', target: :_blank %>
<%= %>
</h5>

Expand Down

0 comments on commit 5303b84

Please sign in to comment.