Module: Tramway::Admin::RecordRoutesHelper

Included in:
ApplicationController
Defined in:
lib/tramway/admin/record_routes_helper.rb

Instance Method Summary collapse

Instance Method Details

#edit_record_path(*args, **options) ⇒ Object



8
9
10
# File 'lib/tramway/admin/record_routes_helper.rb', line 8

def edit_record_path(*args, **options)
  super args, options.merge(model: params[:model])
end

#new_record_path(*args, **options) ⇒ Object



12
13
14
# File 'lib/tramway/admin/record_routes_helper.rb', line 12

def new_record_path(*args, **options)
  super args, options.merge(model: params[:model])
end

#record_path(*args, **options) ⇒ Object



4
5
6
# File 'lib/tramway/admin/record_routes_helper.rb', line 4

def record_path(*args, **options)
  super args, options.merge(model: params[:model])
end

#records_path(*args, **options) ⇒ Object



16
17
18
# File 'lib/tramway/admin/record_routes_helper.rb', line 16

def records_path(*args, **options)
  super args, options.merge(model: params[:model])
end