disco_app 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/disco_app/session.rb +9 -7
- data/lib/disco_app/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: 25ef8173052fd93fcd533b82787c9f12458471ab3f683200ec7431cbde2a45ac
|
4
|
+
data.tar.gz: 52b0ec3760a24c6c7bb93cba6f1ad89649f2e8537d65fedaa68e3be141e3b967
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b0fb7cfcbce18471c0f589e25897566f839be06a214c487e57c0944fe4b85bf4b4222d1f5a11aad5e515c4ad531321dc5a09f6866f22c9d1a65f45d660cbe20
|
7
|
+
data.tar.gz: 1d806e7dacb057b11664599de746929ead7e00e7fa33c8bac90426795c43f57fea20326513ce4c2046372d499a4e109d83e87f79d9056007d59325049cfafd6b
|
data/lib/disco_app/session.rb
CHANGED
@@ -1,12 +1,14 @@
|
|
1
|
-
|
1
|
+
module DiscoApp
|
2
|
+
class Session < ActiveRecord::SessionStore::Session
|
2
3
|
|
3
|
-
|
4
|
+
before_save :set_shop_id!
|
4
5
|
|
5
|
-
|
6
|
+
private
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
def set_shop_id!
|
9
|
+
return false unless loaded?
|
10
|
+
write_attribute(:shop_id, data[:shopify] || data['shopify'])
|
11
|
+
end
|
11
12
|
|
13
|
+
end
|
12
14
|
end
|
data/lib/disco_app/version.rb
CHANGED