Sha256: 58710d3e425ecc9f2e751c2605dd98083fc0d770ba93967c8433424ba91fcbe1

Contents?: true

Size: 322 Bytes

Versions: 5

Compression:

Stored size: 322 Bytes

Contents

module RocketJobMissionControl
  class ApplicationController < ActionController::Base
    protect_from_forgery with: :exception

    around_action :with_time_zone

    private

    def with_time_zone
      if time_zone = session['time_zone'] || 'UTC'
        Time.use_zone(time_zone) { yield }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rocketjob_mission_control-3.1.0 app/controllers/rocket_job_mission_control/application_controller.rb
rocketjob_mission_control-3.0.3 app/controllers/rocket_job_mission_control/application_controller.rb
rocketjob_mission_control-3.0.2 app/controllers/rocket_job_mission_control/application_controller.rb
rocketjob_mission_control-3.0.1 app/controllers/rocket_job_mission_control/application_controller.rb
rocketjob_mission_control-3.0.0 app/controllers/rocket_job_mission_control/application_controller.rb