traitify-magis 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/traitify-magis.rb +1 -1
- data/lib/traitify-magis/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 776d36f5ce1f84137c01e27c6182a95dcdee1f3e
|
4
|
+
data.tar.gz: 29d5e6ceac9c79866128dc53dbfbb20d5e455984
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e578385072f54dab1b2106c6adb449cf59182487d4c7a9872faa4cd4df3b5c6c143076770c37a051c658035268818caf996b7d2de4611904983dfb0fd0b9f26b
|
7
|
+
data.tar.gz: 99dba5223388541e0f4f2c5126ea86a6a2ed19edbf72f4f9bca4f4cef0081aa6b595485a75cb64670486ad625d8bed0cdd4dc128d687a18c2d7edfc5265024bd
|
data/lib/traitify-magis.rb
CHANGED
@@ -27,7 +27,7 @@ class Api < Sinatra::Base
|
|
27
27
|
|
28
28
|
if Magis.db["users"]["assessments"][id]
|
29
29
|
assessment_id = traitify.create_assessment(deck_id: id).id
|
30
|
-
assessments =
|
30
|
+
assessments = current_user["assessments"] || Hash.new
|
31
31
|
assessments[id] = {
|
32
32
|
id.camelcase(:lower) => assessment_id
|
33
33
|
}
|