console1984 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/console1984/sessions_logger/database.rb +1 -1
- data/lib/console1984/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39d8147e2b8b8fa0a20c6aec1422a28633afe80567bac0ac0c98a7d6096ae430
|
4
|
+
data.tar.gz: 760d761d4ced82752b89aa7bd1de44416d545a75bdb0f4266165718100d8a7a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eedbf3cc3436469edd615b397af1c5ad03195f7f1eebfcc1ed6da859a90e0fc213327f8d487841640ddec8c4d39ed1562239e9dda10360a622f59aa809b6f9a
|
7
|
+
data.tar.gz: bdd11a8580f29fd700c954c486e01dc1f8189e452565f37b281d9ee96b78bd375c2f02728df3c4ce405c047fc9fe52b5eac8b5b90a62519bfeaff4aa1465a5d9
|
@@ -4,7 +4,7 @@ class Console1984::SessionsLogger::Database
|
|
4
4
|
|
5
5
|
def start_session(username, reason)
|
6
6
|
silence_logging do
|
7
|
-
user = Console1984::User.
|
7
|
+
user = Console1984::User.find_or_create_by!(username: username)
|
8
8
|
@current_session = user.sessions.create! reason: reason
|
9
9
|
end
|
10
10
|
end
|
data/lib/console1984/version.rb
CHANGED