mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Refactor invoice PDF generation, download and delivery
- Remove `Que::Mailer` (#895) - Extract controllers - Extract translations - Convert HAML to ERB - Add mailer preview - Improve UI - Remove unused routes - Add tests
This commit is contained in:
parent
7e0fd30125
commit
27ea790b28
30 changed files with 288 additions and 138 deletions
13
app/controllers/admin/invoices/delivery_controller.rb
Normal file
13
app/controllers/admin/invoices/delivery_controller.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
module Admin
|
||||
module Invoices
|
||||
class DeliveryController < BaseController
|
||||
include Deliverable
|
||||
|
||||
private
|
||||
|
||||
def redirect_url
|
||||
admin_invoice_path(@invoice)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue