Module: Tramway::Admin::SingletonHelper

Included in:
ApplicationHelper
Defined in:
app/helpers/tramway/admin/singleton_helper.rb

Instance Method Summary collapse

Instance Method Details

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

FIXME: replace to module



5
6
7
# File 'app/helpers/tramway/admin/singleton_helper.rb', line 5

def current_model_singleton_path(*args, **options)
  singleton_path args, options.merge(model: params[:model])
end

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



9
10
11
# File 'app/helpers/tramway/admin/singleton_helper.rb', line 9

def edit_current_model_singleton_path(*args, **options)
  edit_singleton_path args, options.merge(model: params[:model])
end