Method: EffectiveResourcesHelper#return_to_dashboard_path

Defined in:
app/helpers/effective_resources_helper.rb

#return_to_dashboard_pathObject



295
296
297
298
299
300
301
# File 'app/helpers/effective_resources_helper.rb', line 295

def return_to_dashboard_path
  path = (Tenant.routes.dashboard_path rescue nil) if defined?(Tenant) && Tenant.routes.respond_to?(:dashboard_path)
  path ||= (main_app.dashboard_path rescue nil) if main_app.respond_to?(:dashboard_path)
  path ||= (main_app.root_path rescue nil) if main_app.respond_to?(:root_path)

  path || '/'
end