administration-zero 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d82b34403451e2ff66cae9d8475b235f3c63f063a4781b323502054c0e73f398
4
- data.tar.gz: a09b53b077a1f327e064e28f0faeb0a875c61c9cef1227691897fd219cdaf0fd
3
+ metadata.gz: aa39d6d22acd4f9867c2d99ef1811c6e4af5fb5f6b2d5493ce0b2f46d0938f55
4
+ data.tar.gz: 84b1054f1761cb63cd0a24ac090bf1a7ec4e4d55a31a1fc499b7071382573a69
5
5
  SHA512:
6
- metadata.gz: 742d6bcb516e30d8a0bda81e221092271277422fee9bbdd67623354e20080cd147ec538a8d41c11f5e0ba3dd274e42aec3edd64076e42e60aef567cd1dce52b8
7
- data.tar.gz: 44cc0737abd7a70eed80bd4f1c9292568d9db70798b6a5e778bbedd5bf8a58624c6baa237e667e2a6f810890d7500b682e38592dba160e50006e94a56e852a5b
6
+ metadata.gz: 9a96b3868db1d2a9e9e623f178dd6713e391175742cc4d5fc8ff53d2a30b245acfd20064819263c2dfb35aa207ed199e0114dd938854d3f0b063dba045756d54
7
+ data.tar.gz: 0e741a0886344c600ddc340a933ae897ab63f3efaf5065d781bae9c06522a705a95d7b1bd52b321f90da4fa2d5a9431c25e2d9cfcffb7e8014ca676d8e78d304
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- administration-zero (1.0.2)
4
+ administration-zero (1.0.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module AdministrationZero
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -1,12 +1,12 @@
1
1
  class Admin::BaseController < ActionController::Base
2
2
  include Pagy::Backend
3
3
 
4
- before_action :set_time_zone
4
+ around_action :set_time_zone
5
5
  before_action :authenticate
6
6
 
7
7
  private
8
8
  def set_time_zone
9
- Time.zone = cookies[:time_zone]
9
+ Time.use_zone(cookies[:time_zone]) { yield }
10
10
  end
11
11
 
12
12
  def authenticate
@@ -1,3 +1,3 @@
1
1
  class Admin::Current < ActiveSupport::CurrentAttributes
2
- attribute :user; resets { Time.zone = nil }
2
+ attribute :user
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administration-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nixon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-21 00:00:00.000000000 Z
11
+ date: 2023-07-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: