pg_rails 7.6.21.pre.7 → 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: d3be77da8013fb08f687799adf0d3981da8718d28e54911fb0d426fee22e58bf
4
- data.tar.gz: 5a86a4dc41984fe3a595a4548eead9762ea9fb050a32c782052a62ad089649c9
3
+ metadata.gz: 63f1e288e7ae63d4dcbe6ad4f867e1dac603788f261936d8e4f824d8bb6f06c3
4
+ data.tar.gz: 8a1d084833cb47974dd8e49afb43b6db481f02ecb5d2d4d1d824c94dba0d4c1c
5
5
  SHA512:
6
- metadata.gz: c9bd53ff38087b7d766f01f6d5b3886799808d7429865c331465508713f91c1a96218781e9507d4c621fcc41f9fe0c4f8f5d12f2c1935b490d6c816eea36ed69
7
- data.tar.gz: 38d66c0c17690c7e08a83e6466c133b510ba4e18e2861b5dae8511d456fb7ab11dae5c63ae6b5df727351e9c257e26dd16d9289e9673efa3fa12d501ec269813
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,9 +1,5 @@
1
1
  module PgEngine
2
2
  class BaseDeviseMailer < ApplicationMailer
3
- before_action do
4
- @footer_image_src = 'mail-footer-lg.png'
5
- end
6
-
7
3
  layout 'pg_layout/devise_mailer'
8
4
  end
9
5
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.6.21-7'
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.7
4
+ version: 7.6.21.pre.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso