Module: Eboshi::ShallowRouteHelper
- Included in:
- ApplicationController
- Defined in:
- app/helpers/eboshi/shallow_route_helper.rb
Instance Method Summary collapse
- #assignment_path(assignment, options = {}) ⇒ Object
- #assignments_path(client, options = {}) ⇒ Object
- #convert_work_path(work, options = {}) ⇒ Object
- #edit_adjustment_path(adjustment, options = {}) ⇒ Object
- #edit_invoice_path(invoice, options = {}) ⇒ Object
- #edit_work_path(work, options = {}) ⇒ Object
- #invoice_path(invoice, options = {}) ⇒ Object
- #invoices_path(client, options = {}) ⇒ Object
- #line_item_path(work, options = {}) ⇒ Object
- #merge_works_path(client, options = {}) ⇒ Object
- #new_adjustment_path(adjustment, options = {}) ⇒ Object
- #new_assignment_path(client, options = {}) ⇒ Object
- #new_invoice_path(client, options = {}) ⇒ Object
- #new_payment_path(invoice, options = {}) ⇒ Object
- #payments_path(invoice, options = {}) ⇒ Object
- #work_path(work, options = {}) ⇒ Object
Instance Method Details
#assignment_path(assignment, options = {}) ⇒ Object
59 60 61 |
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 59 def assignment_path(assignment, = {}) client_assignment_path(assignment.client, assignment, ) end |
#assignments_path(client, options = {}) ⇒ Object
55 56 57 |
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 55 def assignments_path(client, = {}) client_assignments_path(client, ) end |
#convert_work_path(work, options = {}) ⇒ Object
47 48 49 |
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 47 def convert_work_path(work, = {}) convert_client_work_path(work.client, work, ) end |
#edit_adjustment_path(adjustment, options = {}) ⇒ Object
31 32 33 |
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 31 def edit_adjustment_path(adjustment, = {}) edit_client_adjustment_path(adjustment.client, adjustment, ) end |
#edit_invoice_path(invoice, options = {}) ⇒ Object
15 16 17 |
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 15 def edit_invoice_path(invoice, = {}) edit_client_invoice_path(invoice.client, invoice, ) end |
#edit_work_path(work, options = {}) ⇒ Object
39 40 41 |
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 39 def edit_work_path(work, = {}) edit_client_work_path(work.client, work, ) end |
#invoice_path(invoice, options = {}) ⇒ Object
7 8 9 |
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 7 def invoice_path(invoice, = {}) client_invoice_path(invoice.client, invoice, ) end |
#invoices_path(client, options = {}) ⇒ Object
3 4 5 |
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 3 def invoices_path(client, = {}) client_invoices_path(client, ) end |
#line_item_path(work, options = {}) ⇒ Object
51 52 53 |
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 51 def line_item_path(work, = {}) client_line_item_path(work.client, work, ) end |
#merge_works_path(client, options = {}) ⇒ Object
43 44 45 |
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 43 def merge_works_path(client, = {}) merge_client_works_path(client, ) end |
#new_adjustment_path(adjustment, options = {}) ⇒ Object
27 28 29 |
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 27 def new_adjustment_path(adjustment, = {}) new_client_adjustment_path(adjustment.client, adjustment, ) end |
#new_assignment_path(client, options = {}) ⇒ Object
63 64 65 |
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 63 def new_assignment_path(client, = {}) new_client_assignment_path(client, ) end |
#new_invoice_path(client, options = {}) ⇒ Object
11 12 13 |
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 11 def new_invoice_path(client, = {}) new_client_invoice_path(client, ) end |
#new_payment_path(invoice, options = {}) ⇒ Object
23 24 25 |
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 23 def new_payment_path(invoice, = {}) new_client_invoice_payment_path(invoice.client, invoice, ) end |
#payments_path(invoice, options = {}) ⇒ Object
19 20 21 |
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 19 def payments_path(invoice, = {}) client_invoice_payments_path(invoice.client, invoice, ) end |
#work_path(work, options = {}) ⇒ Object
35 36 37 |
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 35 def work_path(work, = {}) client_work_path(work.client, work, ) end |