pg_rails 7.6.21.pre.8 → 7.6.21.pre.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63f1e288e7ae63d4dcbe6ad4f867e1dac603788f261936d8e4f824d8bb6f06c3
|
4
|
+
data.tar.gz: 8a1d084833cb47974dd8e49afb43b6db481f02ecb5d2d4d1d824c94dba0d4c1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f98bc54a139f85bc9129134a77738c78eb4adc347398acbe5c4d12f93bddff5ad324479d87bdfcd4861d2ffcbbefb4c162636392d8a9c91837196635ebe71c55
|
7
|
+
data.tar.gz: c3089b66fba022d22c4c876344ae0360291c090464f44fc3865fc74b7f434efd202687fe54be256909e1ced1f04a4d87cf3a10c2e55d39b6b66c337b1b0393a3
|
@@ -80,15 +80,17 @@ module PgEngine
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def no_tenant_set(error)
|
83
|
-
pg_debug(error)
|
84
83
|
return internal_error(error) if Current.user.blank?
|
85
84
|
|
86
85
|
active_user_accounts = ActsAsTenant.without_tenant do
|
87
86
|
Current.user.user_accounts.ua_active.to_a
|
88
87
|
end
|
89
88
|
if active_user_accounts.length == 1 && params[:tid].blank?
|
90
|
-
|
89
|
+
url = url_for(tid: active_user_accounts.first.to_param)
|
90
|
+
pg_warn(error, "redirected to #{url}")
|
91
|
+
redirect_to url
|
91
92
|
else
|
93
|
+
pg_warn(error, 'redirected to users_accounts_path')
|
92
94
|
redirect_to users_accounts_path
|
93
95
|
end
|
94
96
|
end
|
data/pg_rails/lib/version.rb
CHANGED