internetee-registry/app/controllers/registrar/invoices_controller.rb
2015-04-14 13:55:32 +03:00

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