Sha256: 98bcd194d5b81bd48a2bf71d2073441d53d2c8497ad5a01bbbf9376744ccb905

Contents?: true

Size: 438 Bytes

Versions: 5

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

class User::ApplicationController < ApplicationController
  layout 'application'
  before_action :authenticate_user!
  before_action :set_user_time_zone
  self.responder = ApplicationResponder

  protected

  def set_user_time_zone
    time_zone = current_user.time_zone
    Time.zone = time_zone if time_zone.present?

    # Set audit current user
    Audited.current_user_method = :current_user
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cybele-2.3.2 templates/app_files/app/controllers/user/application_controller.rb
cybele-2.3.1 templates/app_files/app/controllers/user/application_controller.rb
cybele-2.2.0 templates/app_files/app/controllers/user/application_controller.rb
cybele-2.1.0 templates/app_files/app/controllers/user/application_controller.rb
cybele-2.0.0 templates/app_files/app/controllers/user/application_controller.rb