Basic invoice show

This commit is contained in:
Martin Lensment 2015-04-09 11:48:56 +03:00
parent 13c94aeb1c
commit 56853817aa
7 changed files with 75 additions and 1 deletions

View file

@ -1,6 +1,17 @@
class Registrar::InvoicesController < RegistrarController
load_and_authorize_resource
before_action :set_invoice, only: [:show]
def index
end
def show
end
private
def set_invoice
@invoice = Invoice.find(params[:id])
end
end