Add index view for invoices

This commit is contained in:
Martin Lensment 2015-04-09 18:20:22 +03:00
parent 6a47f38e80
commit d33d249e2d
5 changed files with 27 additions and 3 deletions

View file

@ -4,6 +4,7 @@ class Registrar::InvoicesController < RegistrarController
before_action :set_invoice, only: [:show]
def index
@invoices = current_user.registrar.invoices.includes(:invoice_items)
end
def show