class Users::InvoicesController

Public Instance Methods

index() click to toggle source

List all user related invoices.

# File app/controllers/users/invoices_controller.rb, line 8
def index
  add_breadcrumb "Invoices"
  @invoices = current_user.related_invoices.valid.order("created_at DESC").group_by {|invoice| invoice.created_at.in_time_zone.to_date}
end