Sha256: 6cfda25d70901e748fb2f95de92af0a45d2ad0850ee369b5c17dee5db3ed1dc5
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 Bytes
Contents
class PeopleController < AuthorizedController def show @credit_invoices = resource.credit_invoices @debit_invoices = resource.debit_invoices # Invoice scoping by state by_state = params[:by_state] || 'all' @credit_invoices = @credit_invoices.reorder('due_date DESC').by_state(by_state) @debit_invoices = @debit_invoices.reorder('due_date DESC').by_state(by_state) show! end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bookyt-0.0.1 | app/controllers/people_controller.rb |