Sha256: 16348b437108d8a0c713ffe774a87d1c0514ff077f1ef4cf29d555d01b899e4b

Contents?: true

Size: 255 Bytes

Versions: 3

Compression:

Stored size: 255 Bytes

Contents

# frozen_string_literal: true
module SlashAdmin
  class DashboardController < SlashAdmin::BaseController
    def home; end

    def toggle
      session[:compact] = session[:compact].blank? ? true : nil
      redirect_to request.referer
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slash_admin-1.0.1 app/controllers/slash_admin/dashboard_controller.rb
slash_admin-1.0 app/controllers/slash_admin/dashboard_controller.rb
slash_admin-0.1.0 app/controllers/slash_admin/dashboard_controller.rb