app/controllers/workarea/admin/releases_controller.rb in workarea-admin-3.5.12 vs app/controllers/workarea/admin/releases_controller.rb in workarea-admin-3.5.13

- old
+ new

@@ -7,11 +7,10 @@ before_action :find_release, except: :changes before_action :find_calendar, only: [:index, :update] before_action :authenticate_user_by_token, only: :calendar_feed skip_before_action :require_login, :require_admin, only: :calendar_feed - around_action :set_time_zone, only: :index def index end def show @@ -68,18 +67,9 @@ filename: params[:filename], type: 'text/calendar' end private - - def set_time_zone - old_time_zone = Time.zone - time_offset = params[:time_offset].to_i / 100 - Time.zone = time_offset.hours unless params[:time_offset].blank? - yield - ensure - Time.zone = old_time_zone - end def find_release model = if params[:id].present? Release.find(params[:id]) else