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



3
4
5
# File 'app/helpers/tramway/admin/singleton_helper.rb', line 3

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

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



7
8
9
# File 'app/helpers/tramway/admin/singleton_helper.rb', line 7

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