pg_rails 7.6.21.pre.5 → 7.6.21.pre.7

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: 2f515ba243d4ef8862ebb74652329637397334f2af37b82a3984a6cab05bf2ab
4
- data.tar.gz: 7f01717d0f4a9e4ff9aeca5a24286134cf4045c3554986e716c5aa33c6d5a9fd
3
+ metadata.gz: d3be77da8013fb08f687799adf0d3981da8718d28e54911fb0d426fee22e58bf
4
+ data.tar.gz: 5a86a4dc41984fe3a595a4548eead9762ea9fb050a32c782052a62ad089649c9
5
5
  SHA512:
6
- metadata.gz: dd6e02da0ef6c884fa7bacf08c3cc38ee9677ba26c26e47d97eb313accdaf14ac82781a70ad54149f40c63b37b0313adf410f14e0b169866078f2d2f3fa30d09
7
- data.tar.gz: 510037412f74089b74bd7cd632cf70fb2e25d57c0e7d4463d0667f723a4add732319f89f0f7670ccaa6c10874372ee87943c2f92d96fa789badbd04ed4d4fde0
6
+ metadata.gz: c9bd53ff38087b7d766f01f6d5b3886799808d7429865c331465508713f91c1a96218781e9507d4c621fcc41f9fe0c4f8f5d12f2c1935b490d6c816eea36ed69
7
+ data.tar.gz: 38d66c0c17690c7e08a83e6466c133b510ba4e18e2861b5dae8511d456fb7ab11dae5c63ae6b5df727351e9c257e26dd16d9289e9673efa3fa12d501ec269813
@@ -131,7 +131,7 @@ module PgEngine
131
131
 
132
132
  full_key = "#{profile_prefix}__#{key}"
133
133
 
134
- scoped_by_tenant = record.class.respond_to?(:scoped_by_tenant) && record.class.scoped_by_tenant?
134
+ scoped_by_tenant = record.class.respond_to?(:scoped_by_tenant?) && record.class.scoped_by_tenant?
135
135
  (!scoped_by_tenant || Current.account.id == record.account_id) &&
136
136
  (Current.user_account_owner? || Current.active_user_profiles.include?(full_key))
137
137
  end
@@ -0,0 +1,3 @@
1
+ RSpec.configure do |config|
2
+ config.before(:each, type: :job) { Draper::ViewContext.clear! }
3
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.6.21-5'
4
+ VERSION = '7.6.21-7'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.6.21.pre.5
4
+ version: 7.6.21.pre.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-04 00:00:00.000000000 Z
11
+ date: 2024-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -1036,6 +1036,7 @@ files:
1036
1036
  - pg_rails/lib/pg_rails/capybara_support.rb
1037
1037
  - pg_rails/lib/pg_rails/current_attributes_support.rb
1038
1038
  - pg_rails/lib/pg_rails/dotenv_support.rb
1039
+ - pg_rails/lib/pg_rails/draper_support.rb
1039
1040
  - pg_rails/lib/pg_rails/pundit_matchers.rb
1040
1041
  - pg_rails/lib/pg_rails/redis_support.rb
1041
1042
  - pg_rails/lib/pg_rails/rspec_logger_matchers.rb