Module: Tramway::Admin::RecordRoutesHelper
- Included in:
- ApplicationController
- Defined in:
- lib/tramway/admin/record_routes_helper.rb
Instance Method Summary collapse
- #edit_record_path(*args, **options) ⇒ Object
- #new_record_path(*args, **options) ⇒ Object
- #record_path(*args, **options) ⇒ Object
- #records_path(*args, **options) ⇒ Object
Instance Method Details
#edit_record_path(*args, **options) ⇒ Object
11 12 13 14 |
# File 'lib/tramway/admin/record_routes_helper.rb', line 11 def edit_record_path(*args, **) [:model] ||= params[:model] super args, end |
#new_record_path(*args, **options) ⇒ Object
16 17 18 19 |
# File 'lib/tramway/admin/record_routes_helper.rb', line 16 def new_record_path(*args, **) [:model] ||= params[:model] super args, end |
#record_path(*args, **options) ⇒ Object
6 7 8 9 |
# File 'lib/tramway/admin/record_routes_helper.rb', line 6 def record_path(*args, **) [:model] ||= params[:model] super args, end |
#records_path(*args, **options) ⇒ Object
21 22 23 24 |
# File 'lib/tramway/admin/record_routes_helper.rb', line 21 def records_path(*args, **) [:model] ||= params[:model] super args, end |