Module: Eboshi::ShallowRouteHelper

Included in:
ApplicationController
Defined in:
app/helpers/eboshi/shallow_route_helper.rb

Instance Method Summary collapse

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, options = {})
  client_assignment_path(assignment.client, assignment, options)
end

#assignments_path(client, options = {}) ⇒ Object



55
56
57
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 55

def assignments_path(client, options = {})
  client_assignments_path(client, options)
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, options = {})
  convert_client_work_path(work.client, work, options)
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, options = {})
  edit_client_adjustment_path(adjustment.client, adjustment, options)
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, options = {})
  edit_client_invoice_path(invoice.client, invoice, options)
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, options = {})
  edit_client_work_path(work.client, work, options)
end

#invoice_path(invoice, options = {}) ⇒ Object



7
8
9
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 7

def invoice_path(invoice, options = {})
  client_invoice_path(invoice.client, invoice, options)
end

#invoices_path(client, options = {}) ⇒ Object



3
4
5
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 3

def invoices_path(client, options = {})
  client_invoices_path(client, options)
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, options = {})
  client_line_item_path(work.client, work, options)
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, options = {})
  merge_client_works_path(client, options)
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, options = {})
  new_client_adjustment_path(adjustment.client, adjustment, options)
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, options = {})
  new_client_assignment_path(client, options)
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, options = {})
  new_client_invoice_path(client, options)
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, options = {})
  new_client_invoice_payment_path(invoice.client, invoice, options)
end

#payments_path(invoice, options = {}) ⇒ Object



19
20
21
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 19

def payments_path(invoice, options = {})
  client_invoice_payments_path(invoice.client, invoice, options)
end

#work_path(work, options = {}) ⇒ Object



35
36
37
# File 'app/helpers/eboshi/shallow_route_helper.rb', line 35

def work_path(work, options = {})
  client_work_path(work.client, work, options)
end