Sha256: 58ec37a00322dc49dea92c7a9c404eb4f7e86c685c47f9782c11ca65391670d3

Contents?: true

Size: 258 Bytes

Versions: 1

Compression:

Stored size: 258 Bytes

Contents

module MailyHerald
	class Webui::SessionsController < Webui::ApplicationController
    def switch_mode
      if %w{regular expert}.include? params[:mode]
        session[:work_mode] = params[:mode].to_sym
      end

      redirect_to :back
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
maily_herald-webui-0.8.0 app/controllers/maily_herald/webui/sessions_controller.rb