Class: Decidim::System::DashboardController

Inherits:
ApplicationController show all
Defined in:
decidim-system/app/controllers/decidim/system/dashboard_controller.rb

Instance Method Summary collapse

Methods included from HttpCachingDisabler

#disable_http_caching

Instance Method Details

#check_organizations_presenceObject


12
13
14
15
16
# File 'decidim-system/app/controllers/decidim/system/dashboard_controller.rb', line 12

def check_organizations_presence
  return if Organization.exists?

  redirect_to new_organization_path
end

#showObject


8
9
10
# File 'decidim-system/app/controllers/decidim/system/dashboard_controller.rb', line 8

def show
  @organizations = Organization.all
end