Sha256: e80cb0bd1d48d527862de147408d68d4f9b2967133e566c365c2affe778e2c2a

Contents?: true

Size: 225 Bytes

Versions: 2

Compression:

Stored size: 225 Bytes

Contents

module SolidQueueDashboard
  class AppearanceController < ApplicationController
    def toggle
      cookies[:dark_mode] = cookies[:dark_mode] == "false" ? "true" : "false"
      redirect_to request.referer
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solid_queue_dashboard-0.1.1 app/controllers/solid_queue_dashboard/appearance_controller.rb
solid_queue_dashboard-0.1.0 app/controllers/solid_queue_dashboard/appearance_controller.rb