Sha256: bef7d4ecd0283f741927d0af9115f01f2c22182a2ede0d82c832ce7d3e7314c8
Contents?: true
Size: 327 Bytes
Versions: 1
Compression:
Stored size: 327 Bytes
Contents
# frozen_string_literal: true class TimeZonesController < ApplicationController def update @time_zone = ActiveSupport::TimeZone[params[:time_zone]] unless @time_zone return render :not_found end session[:current_time_zone] = params[:time_zone] redirect_back fallback_location: root_url end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
script_core-0.1.0 | spec/dummy/app/controllers/time_zones_controller.rb |