Skip to content

Commit 411b5ad

Browse files
authored
Merge branch 'main' into dependabot/bundler/turbo-rails-2.0.11
2 parents 8992173 + 8373b0f commit 411b5ad

File tree

12 files changed

+106
-105
lines changed

12 files changed

+106
-105
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ gem "pg", "~> 1.5.7"
1414
# Web server.
1515
gem "puma"
1616
# Rails web framework.
17-
gem "rails", "7.1.3.4"
17+
gem "rails", "7.2.2"
1818

1919
###### MODELS / DATABASE #######
2020

Gemfile.lock

Lines changed: 88 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -2,80 +2,77 @@ GEM
22
remote: https://rubygems.org/
33
specs:
44
Ascii85 (1.1.1)
5-
actioncable (7.1.3.4)
6-
actionpack (= 7.1.3.4)
7-
activesupport (= 7.1.3.4)
5+
actioncable (7.2.2)
6+
actionpack (= 7.2.2)
7+
activesupport (= 7.2.2)
88
nio4r (~> 2.0)
99
websocket-driver (>= 0.6.1)
1010
zeitwerk (~> 2.6)
11-
actionmailbox (7.1.3.4)
12-
actionpack (= 7.1.3.4)
13-
activejob (= 7.1.3.4)
14-
activerecord (= 7.1.3.4)
15-
activestorage (= 7.1.3.4)
16-
activesupport (= 7.1.3.4)
17-
mail (>= 2.7.1)
18-
net-imap
19-
net-pop
20-
net-smtp
21-
actionmailer (7.1.3.4)
22-
actionpack (= 7.1.3.4)
23-
actionview (= 7.1.3.4)
24-
activejob (= 7.1.3.4)
25-
activesupport (= 7.1.3.4)
26-
mail (~> 2.5, >= 2.5.4)
27-
net-imap
28-
net-pop
29-
net-smtp
11+
actionmailbox (7.2.2)
12+
actionpack (= 7.2.2)
13+
activejob (= 7.2.2)
14+
activerecord (= 7.2.2)
15+
activestorage (= 7.2.2)
16+
activesupport (= 7.2.2)
17+
mail (>= 2.8.0)
18+
actionmailer (7.2.2)
19+
actionpack (= 7.2.2)
20+
actionview (= 7.2.2)
21+
activejob (= 7.2.2)
22+
activesupport (= 7.2.2)
23+
mail (>= 2.8.0)
3024
rails-dom-testing (~> 2.2)
31-
actionpack (7.1.3.4)
32-
actionview (= 7.1.3.4)
33-
activesupport (= 7.1.3.4)
25+
actionpack (7.2.2)
26+
actionview (= 7.2.2)
27+
activesupport (= 7.2.2)
3428
nokogiri (>= 1.8.5)
3529
racc
36-
rack (>= 2.2.4)
30+
rack (>= 2.2.4, < 3.2)
3731
rack-session (>= 1.0.1)
3832
rack-test (>= 0.6.3)
3933
rails-dom-testing (~> 2.2)
4034
rails-html-sanitizer (~> 1.6)
41-
actiontext (7.1.3.4)
42-
actionpack (= 7.1.3.4)
43-
activerecord (= 7.1.3.4)
44-
activestorage (= 7.1.3.4)
45-
activesupport (= 7.1.3.4)
35+
useragent (~> 0.16)
36+
actiontext (7.2.2)
37+
actionpack (= 7.2.2)
38+
activerecord (= 7.2.2)
39+
activestorage (= 7.2.2)
40+
activesupport (= 7.2.2)
4641
globalid (>= 0.6.0)
4742
nokogiri (>= 1.8.5)
48-
actionview (7.1.3.4)
49-
activesupport (= 7.1.3.4)
43+
actionview (7.2.2)
44+
activesupport (= 7.2.2)
5045
builder (~> 3.1)
5146
erubi (~> 1.11)
5247
rails-dom-testing (~> 2.2)
5348
rails-html-sanitizer (~> 1.6)
54-
activejob (7.1.3.4)
55-
activesupport (= 7.1.3.4)
49+
activejob (7.2.2)
50+
activesupport (= 7.2.2)
5651
globalid (>= 0.3.6)
57-
activemodel (7.1.3.4)
58-
activesupport (= 7.1.3.4)
59-
activerecord (7.1.3.4)
60-
activemodel (= 7.1.3.4)
61-
activesupport (= 7.1.3.4)
52+
activemodel (7.2.2)
53+
activesupport (= 7.2.2)
54+
activerecord (7.2.2)
55+
activemodel (= 7.2.2)
56+
activesupport (= 7.2.2)
6257
timeout (>= 0.4.0)
63-
activestorage (7.1.3.4)
64-
actionpack (= 7.1.3.4)
65-
activejob (= 7.1.3.4)
66-
activerecord (= 7.1.3.4)
67-
activesupport (= 7.1.3.4)
58+
activestorage (7.2.2)
59+
actionpack (= 7.2.2)
60+
activejob (= 7.2.2)
61+
activerecord (= 7.2.2)
62+
activesupport (= 7.2.2)
6863
marcel (~> 1.0)
69-
activesupport (7.1.3.4)
64+
activesupport (7.2.2)
7065
base64
66+
benchmark (>= 0.3)
7167
bigdecimal
72-
concurrent-ruby (~> 1.0, >= 1.0.2)
68+
concurrent-ruby (~> 1.0, >= 1.3.1)
7369
connection_pool (>= 2.2.5)
7470
drb
7571
i18n (>= 1.6, < 2)
72+
logger (>= 1.4.2)
7673
minitest (>= 5.1)
77-
mutex_m
78-
tzinfo (~> 2.0)
74+
securerandom (>= 0.3)
75+
tzinfo (~> 2.0, >= 2.0.5)
7976
addressable (2.8.7)
8077
public_suffix (>= 2.0.2, < 7.0)
8178
afm (0.2.2)
@@ -96,6 +93,7 @@ GEM
9693
nokogiri (~> 1, >= 1.10.8)
9794
base64 (0.2.0)
9895
bcrypt (3.1.20)
96+
benchmark (0.3.0)
9997
better_errors (2.10.1)
10098
erubi (>= 1.0.0)
10199
rack (>= 0.9.0)
@@ -122,7 +120,7 @@ GEM
122120
bugsnag (6.27.1)
123121
concurrent-ruby (~> 1.0)
124122
builder (3.3.0)
125-
bullet (8.0.0)
123+
bullet (7.2.0)
126124
activesupport (>= 3.0.0)
127125
uniform_notifier (~> 1.11)
128126
capybara (3.40.0)
@@ -145,7 +143,7 @@ GEM
145143
coderay (1.1.3)
146144
concurrent-ruby (1.3.4)
147145
connection_pool (2.4.1)
148-
coverband (6.1.4)
146+
coverband (6.1.2)
149147
redis (>= 3.0)
150148
crack (1.0.0)
151149
bigdecimal
@@ -159,14 +157,14 @@ GEM
159157
activerecord (>= 5.a)
160158
database_cleaner-core (~> 2.0.0)
161159
database_cleaner-core (2.0.1)
162-
date (3.3.4)
160+
date (3.4.0)
163161
debug (1.9.2)
164162
irb (~> 1.10)
165163
reline (>= 0.3.8)
166164
debug_inspector (1.2.0)
167-
delayed_job (4.1.12)
165+
delayed_job (4.1.11)
168166
activesupport (>= 3.0, < 8.0)
169-
delayed_job_active_record (4.1.10)
167+
delayed_job_active_record (4.1.8)
170168
activerecord (>= 3.0, < 8.0)
171169
delayed_job (>= 3.0, < 5)
172170
delayed_job_web (1.4.4)
@@ -261,11 +259,11 @@ GEM
261259
ffi (1.17.0-x86_64-darwin)
262260
ffi (1.17.0-x86_64-linux-gnu)
263261
filterrific (5.2.5)
264-
flipper (1.3.2)
262+
flipper (1.3.1)
265263
concurrent-ruby (< 2)
266-
flipper-active_record (1.3.2)
267-
activerecord (>= 4.2, < 9)
268-
flipper (~> 1.3.2)
264+
flipper-active_record (1.3.0)
265+
activerecord (>= 4.2, < 8)
266+
flipper (~> 1.3.0)
269267
flipper-ui (1.3.1)
270268
erubi (>= 1.0.0, < 2.0.0)
271269
flipper (~> 1.3.1)
@@ -312,7 +310,7 @@ GEM
312310
image_processing (1.13.0)
313311
mini_magick (>= 4.9.5, < 5)
314312
ruby-vips (>= 2.0.17, < 3)
315-
importmap-rails (2.0.1)
313+
importmap-rails (2.0.3)
316314
actionpack (>= 6.0.0)
317315
activesupport (>= 6.0.0)
318316
railties (>= 6.0.0)
@@ -350,7 +348,7 @@ GEM
350348
listen (3.9.0)
351349
rb-fsevent (~> 0.10, >= 0.10.3)
352350
rb-inotify (~> 0.9, >= 0.9.10)
353-
logger (1.6.0)
351+
logger (1.6.1)
354352
lograge (0.14.0)
355353
actionpack (>= 4)
356354
activesupport (>= 4)
@@ -375,7 +373,7 @@ GEM
375373
method_source (1.1.0)
376374
mini_magick (4.13.2)
377375
mini_mime (1.1.5)
378-
minitest (5.25.2)
376+
minitest (5.25.1)
379377
monetize (1.12.0)
380378
money (~> 6.12)
381379
money (6.16.0)
@@ -391,11 +389,10 @@ GEM
391389
multipart-post (2.4.1)
392390
mustermann (3.0.0)
393391
ruby2_keywords (~> 0.0.1)
394-
mutex_m (0.3.0)
395392
nenv (0.3.0)
396393
net-http-persistent (4.0.2)
397394
connection_pool (~> 2.2)
398-
net-imap (0.4.12)
395+
net-imap (0.5.0)
399396
date
400397
net-protocol
401398
net-pop (0.1.2)
@@ -404,8 +401,8 @@ GEM
404401
timeout
405402
net-smtp (0.5.0)
406403
net-protocol
407-
newrelic_rpm (9.16.0)
408-
nio4r (2.7.3)
404+
newrelic_rpm (9.13.0)
405+
nio4r (2.7.4)
409406
nokogiri (1.16.7-arm64-darwin)
410407
racc (~> 1.4)
411408
nokogiri (1.16.7-x86_64-darwin)
@@ -441,7 +438,7 @@ GEM
441438
capybara (>= 1.1)
442439
rspec (>= 2.14)
443440
orm_adapter (0.5.0)
444-
paper_trail (15.1.0)
441+
paper_trail (15.2.0)
445442
activerecord (>= 6.1)
446443
request_store (~> 1.4)
447444
parallel (1.26.3)
@@ -496,23 +493,22 @@ GEM
496493
rack (>= 3.0.0)
497494
rack-test (2.1.0)
498495
rack (>= 1.3)
499-
rackup (2.1.0)
496+
rackup (2.2.0)
500497
rack (>= 3)
501-
webrick (~> 1.8)
502-
rails (7.1.3.4)
503-
actioncable (= 7.1.3.4)
504-
actionmailbox (= 7.1.3.4)
505-
actionmailer (= 7.1.3.4)
506-
actionpack (= 7.1.3.4)
507-
actiontext (= 7.1.3.4)
508-
actionview (= 7.1.3.4)
509-
activejob (= 7.1.3.4)
510-
activemodel (= 7.1.3.4)
511-
activerecord (= 7.1.3.4)
512-
activestorage (= 7.1.3.4)
513-
activesupport (= 7.1.3.4)
498+
rails (7.2.2)
499+
actioncable (= 7.2.2)
500+
actionmailbox (= 7.2.2)
501+
actionmailer (= 7.2.2)
502+
actionpack (= 7.2.2)
503+
actiontext (= 7.2.2)
504+
actionview (= 7.2.2)
505+
activejob (= 7.2.2)
506+
activemodel (= 7.2.2)
507+
activerecord (= 7.2.2)
508+
activestorage (= 7.2.2)
509+
activesupport (= 7.2.2)
514510
bundler (>= 1.15.0)
515-
railties (= 7.1.3.4)
511+
railties (= 7.2.2)
516512
rails-controller-testing (1.0.5)
517513
actionpack (>= 5.0.1.rc1)
518514
actionview (>= 5.0.1.rc1)
@@ -529,10 +525,10 @@ GEM
529525
rails-html-sanitizer (1.6.0)
530526
loofah (~> 2.21)
531527
nokogiri (~> 1.14)
532-
railties (7.1.3.4)
533-
actionpack (= 7.1.3.4)
534-
activesupport (= 7.1.3.4)
535-
irb
528+
railties (7.2.2)
529+
actionpack (= 7.2.2)
530+
activesupport (= 7.2.2)
531+
irb (~> 1.13)
536532
rackup (>= 1.0.0)
537533
rake (>= 12.2)
538534
thor (~> 1.0, >= 1.2.2)
@@ -552,7 +548,7 @@ GEM
552548
regexp_parser (2.9.2)
553549
reline (0.5.10)
554550
io-console (~> 0.5)
555-
request_store (1.5.1)
551+
request_store (1.7.0)
556552
rack (>= 1.4)
557553
responders (3.1.1)
558554
actionpack (>= 5.2)
@@ -623,6 +619,7 @@ GEM
623619
sprockets (> 3.0)
624620
sprockets-rails
625621
tilt
622+
securerandom (0.3.1)
626623
shellany (0.0.1)
627624
shoulda-matchers (6.2.0)
628625
activesupport (>= 5.2.0)
@@ -674,7 +671,7 @@ GEM
674671
execjs (>= 0.3.0, < 3)
675672
thor (1.3.2)
676673
tilt (2.2.0)
677-
timeout (0.4.2)
674+
timeout (0.4.1)
678675
ttfunk (1.7.0)
679676
turbo-rails (2.0.11)
680677
actionpack (>= 6.0.0)
@@ -683,6 +680,7 @@ GEM
683680
concurrent-ruby (~> 1.0)
684681
unicode-display_width (2.6.0)
685682
uniform_notifier (1.16.0)
683+
useragent (0.16.10)
686684
version_gem (1.1.4)
687685
warden (1.2.9)
688686
rack (>= 2.0.9)
@@ -695,7 +693,7 @@ GEM
695693
addressable (>= 2.8.0)
696694
crack (>= 0.3.2)
697695
hashdiff (>= 0.4.0, < 2.0.0)
698-
webrick (1.8.2)
696+
webrick (1.9.0)
699697
websocket-driver (0.7.6)
700698
websocket-extensions (>= 0.1.0)
701699
websocket-extensions (0.1.5)
@@ -709,7 +707,6 @@ PLATFORMS
709707
arm64-darwin-21
710708
arm64-darwin-22
711709
arm64-darwin-23
712-
arm64-darwin-24
713710
x86_64-darwin-20
714711
x86_64-darwin-21
715712
x86_64-darwin-22
@@ -781,7 +778,7 @@ DEPENDENCIES
781778
pry-rails
782779
pry-remote
783780
puma
784-
rails (= 7.1.3.4)
781+
rails (= 7.2.2)
785782
rails-controller-testing
786783
rails-erd
787784
recaptcha
@@ -805,4 +802,4 @@ DEPENDENCIES
805802
webmock (~> 3.24)
806803

807804
BUNDLED WITH
808-
2.5.23
805+
2.5.22

app/models/account_request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class AccountRequest < ApplicationRecord
3030

3131
has_one :organization, dependent: :nullify
3232

33-
enum status: %w[started user_confirmed admin_approved rejected admin_closed].map { |v| [v, v] }.to_h
33+
enum :status, %w[started user_confirmed admin_approved rejected admin_closed].map { |v| [v, v] }.to_h
3434

3535
scope :requested, -> { where(status: %w[started user_confirmed]) }
3636
scope :closed, -> { where(status: %w[admin_approved rejected admin_closed]) }

app/models/barcode_item.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ class BarcodeItem < ApplicationRecord
4949

5050
scope :global, -> { where(barcodeable_type: "BaseItem") }
5151

52-
alias_attribute :item, :barcodeable
53-
alias_attribute :base_item, :barcodeable
52+
# aliases of barcodeable
53+
belongs_to :item, polymorphic: true, dependent: :destroy,
54+
counter_cache: :barcode_count, foreign_key: :barcodeable_id, foreign_type: :barcodeable_type
55+
belongs_to :base_item, polymorphic: true, dependent: :destroy,
56+
counter_cache: :barcode_count, foreign_key: :barcodeable_id, foreign_type: :barcodeable_type
5457

5558
def to_h
5659
{

0 commit comments

Comments
 (0)