egov_utils 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/egov_utils/user.rb +2 -2
- data/lib/egov_utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45926975307ac0185bf837788bb5d0391b031e5c1772ae4b2e01cfd17d8a59c0
|
4
|
+
data.tar.gz: 7c2af128ab6e9d2e5ec00b7b7ec2b69fd95d5fa268cbe25beb53fb94abee093d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 676aebd939af9730219ec9e5e2b45fe1acc47b63a1d308d58dca94aab8e31fc2051e37ce1e53e3842a2ada7a1c1c37162510a135b2c79dd0535f6dbb6f2fad1f
|
7
|
+
data.tar.gz: ae63960e5446f72c787d11c02bd738468b38dbbb94a464a2e7d6ed47d3ba59c3c49f97932280e45dc79d94ca8ee9d4bdb14439fcd3b01645cbfad599c0effc96
|
@@ -66,8 +66,8 @@ module EgovUtils
|
|
66
66
|
|
67
67
|
if user && !user.new_record?
|
68
68
|
# Check last login
|
69
|
-
if user.days_before_inactive && user.last_login_at < (Time.now - user.days_before_inactive.days)
|
70
|
-
user.update_column(active
|
69
|
+
if user.days_before_inactive && (user.last_login_at || user.created_at) < (Time.now - user.days_before_inactive.days)
|
70
|
+
user.update_column(:active, false)
|
71
71
|
end
|
72
72
|
|
73
73
|
user.update_column(:last_login_at, Time.now) if user.active?
|
data/lib/egov_utils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: egov_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondřej Ezr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|