Module: Tramway::RecordRoutesHelper
- Included in:
- ApplicationController
- Defined in:
- lib/tramway/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
9 10 11 12 |
# File 'lib/tramway/record_routes_helper.rb', line 9 def edit_record_path(*args, **) [:model] ||= params[:model] super args, 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, **) [:model] ||= params[:model] super args, end |
#record_path(*args, **options) ⇒ Object
4 5 6 7 |
# File 'lib/tramway/record_routes_helper.rb', line 4 def record_path(*args, **) [:model] ||= params[:model] super args, end |
#records_path(*args, **options) ⇒ Object
19 20 21 22 |
# File 'lib/tramway/record_routes_helper.rb', line 19 def records_path(*args, **) [:model] ||= params[:model] super args, end |