Skip to content

Commit

Permalink
change tmp custom cover location
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacug committed Apr 20, 2020
1 parent 9d06218 commit 0b486a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/workers/manual_download_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def zip_file_generator
def cover_path_generator
kit = PDFKit.new(ActionController::Base.new().render_to_string(template: '/checklist/_custom_id_manual_cover.html.erb', locals: { taxon_name: @display_name }))
kit.stylesheets << "#{Rails.root.to_s}/app/assets/stylesheets/checklist/custom_id_manual_cover.css"
@cover_path = "public/ID_manual_cover/#{@display_name}-cover.pdf"
@cover_path = "public/downloads/checklist/#{@display_name}-cover.pdf"
kit.to_file(@cover_path)
end
end

0 comments on commit 0b486a9

Please sign in to comment.