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: 6a439af10284382f4f53949fdda3f7896153111579e5a82bc165173dad621e7b
4
- data.tar.gz: a8eb2dc72770f60c14a71181f6134882106f5f8031c623c1820d9614beb15002
3
+ metadata.gz: 63f1e288e7ae63d4dcbe6ad4f867e1dac603788f261936d8e4f824d8bb6f06c3
4
+ data.tar.gz: 8a1d084833cb47974dd8e49afb43b6db481f02ecb5d2d4d1d824c94dba0d4c1c
5
5
  SHA512:
6
- metadata.gz: 7346846582bd45180a3f34327364f4ce153d5e16f4716e84bc12fef3d9b5bb7b9ae7557abeecf67b05c61b37aa94ec1481298cad705e1d9d1093ba7aa5271831
7
- data.tar.gz: 2a0541a2a7c51e4e2a0205f8e8270f60f2bc7e08b038d3b9bfee92f4fed22da9b323709b3b81d3018eae80f726f7f8071bdda249b550e4f724cc9b0c2cffa466
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
- redirect_to url_for(tid: active_user_accounts.first.to_param)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.6.21-8'
4
+ VERSION = '7.6.21-9'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.6.21.pre.8
4
+ version: 7.6.21.pre.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso