mirror of
https://github.com/internetee/registry.git
synced 2025-07-14 06:55:11 +02:00
18 lines
341 B
Ruby
18 lines
341 B
Ruby
class Registrar::InvoicesController < RegistrarController
|
|
load_and_authorize_resource
|
|
|
|
before_action :set_invoice, only: [:show]
|
|
|
|
def index
|
|
@invoices = current_user.registrar.invoices.includes(:invoice_items).order(id: :desc)
|
|
end
|
|
|
|
def show
|
|
end
|
|
|
|
private
|
|
|
|
def set_invoice
|
|
@invoice = Invoice.find(params[:id])
|
|
end
|
|
end
|