Module: Tramway::RecordRoutesHelper

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

Instance Method Summary collapse

Instance Method Details

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



9
10
11
12
# File 'lib/tramway/record_routes_helper.rb', line 9

def edit_record_path(*args, **options)
  options[:model] ||= params[:model]
  super args, options
end

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



14
15
16
17
# File 'lib/tramway/record_routes_helper.rb', line 14

def new_record_path(*args, **options)
  options[:model] ||= params[:model]
  super args, options
end

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



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

def record_path(*args, **options)
  options[:model] ||= params[:model]
  super args, options
end

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



19
20
21
22
# File 'lib/tramway/record_routes_helper.rb', line 19

def records_path(*args, **options)
  options[:model] ||= params[:model]
  super args, options
end