ishapi 0.1.8.103 → 0.1.8.104
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ishapi/application_controller.rb +2 -5
- 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: 34e79317e5905e81412a00a8f2c2596d62748241f9e182a341b0794679f0775c
|
4
|
+
data.tar.gz: 96d35ed893a0776756aff7d095e71083888572a98f2e20b9cae420d2144e3291
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2022d8f2ef65537a6bdafe76070cc8c006c7bb7b75202f4c9abdf1ae9673b95feab09f249e22a066f996218eeca84b0c6fdd8eaa317cbc84675e68e5baa1f4d4
|
7
|
+
data.tar.gz: 435b25be897692e9e05d168ee3dc7874d5ec4dc57ede19e33ca787634a2acd81421fac0b5203e21dd2894cfe89652016b2d6420eabed08e581f761dc6544dfd2
|
@@ -39,12 +39,9 @@ module Ishapi
|
|
39
39
|
@current_user = User.where( :email => @me['email'] ).first
|
40
40
|
@current_user ||= User.create! email: @me['email'], password: SecureRandom.urlsafe_base64
|
41
41
|
|
42
|
-
@current_profile = @current_user.profile
|
42
|
+
@current_profile = @current_user.profile
|
43
43
|
if !@current_profile
|
44
|
-
|
45
|
-
p.user = @current_user
|
46
|
-
p.save
|
47
|
-
@current_profile = p
|
44
|
+
@current_profile = IshModels::UserProfile.create user: @current_user, name: @me['email'], email: @me['email']
|
48
45
|
end
|
49
46
|
else
|
50
47
|
@current_user = current_user if Rails.env.test?
|