userbin 1.4.5 → 1.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/userbin/models/model.rb +1 -1
- data/lib/userbin/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: 6c40c4ccf07102c60c287a9fdc9c833355a36dec
|
4
|
+
data.tar.gz: 03b447d4208fe3dba8558bf945efa15ce9806c19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 803533d561e23e4415d7b7510bf933eb335dd427d3b10d7e9e44beaaf547cb92eb70dedd35cf10ae7d80343ab1978a4f124a757bc4e957f1117a323b5e650edc
|
7
|
+
data.tar.gz: f7dd0954673aecae7967d8948fbd0cd2030347921ca88b20d9fb51b70c1ed5191b94fce1787f84d0facb5da8df13a852b3624b324ffccca299e46247e4e680fe
|
data/lib/userbin/models/model.rb
CHANGED
@@ -21,7 +21,7 @@ module Userbin
|
|
21
21
|
# Remove the auto-generated embedded User model to prevent recursion
|
22
22
|
def to_json
|
23
23
|
attrs = attributes
|
24
|
-
if attrs['user'] && attrs['user']['id'] == 'current'
|
24
|
+
if attrs['user'] && attrs['user']['id'] == '$current'
|
25
25
|
attrs.delete 'user'
|
26
26
|
end
|
27
27
|
attrs.to_json
|
data/lib/userbin/version.rb
CHANGED