diff --git a/Gemfile.lock b/Gemfile.lock index e0d92e51..d7797d31 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -252,7 +252,7 @@ GEM actionview (>= 7.0.0) activesupport (>= 7.0.0) jmespath (1.6.2) - json (2.16.0) + json (2.18.0) language_server-protocol (3.17.0.5) launchy (3.0.1) addressable (~> 2.8) @@ -318,7 +318,7 @@ GEM nokogiri (1.18.10-x86_64-linux-gnu) racc (~> 1.4) parallel (1.27.0) - parser (3.3.8.0) + parser (3.3.10.0) ast (~> 2.4.1) racc pg (1.6.2-aarch64-linux) @@ -335,7 +335,7 @@ GEM net-smtp premailer (~> 1.7, >= 1.7.9) prettyprint (0.2.0) - prism (1.4.0) + prism (1.6.0) psych (5.2.6) date stringio @@ -370,7 +370,7 @@ GEM erb psych (>= 4.0.0) tsort - regexp_parser (2.10.0) + regexp_parser (2.11.3) reline (0.6.3) io-console (~> 0.5) request_store (1.6.0) @@ -378,7 +378,7 @@ GEM rexml (3.4.4) rinku (2.0.6) rouge (4.3.0) - rubocop (1.75.8) + rubocop (1.81.7) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -386,16 +386,16 @@ GEM parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 2.9.3, < 3.0) - rubocop-ast (>= 1.44.0, < 2.0) + rubocop-ast (>= 1.47.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.45.1) + rubocop-ast (1.48.0) parser (>= 3.3.7.2) prism (~> 1.4) - rubocop-performance (1.25.0) + rubocop-performance (1.26.1) lint_roller (~> 1.1) rubocop (>= 1.75.0, < 2.0) - rubocop-ast (>= 1.38.0, < 2.0) + rubocop-ast (>= 1.47.1, < 2.0) ruby-progressbar (1.13.0) ruby-vips (2.2.3) ffi (~> 1.12) @@ -418,18 +418,18 @@ GEM actionpack (>= 6.1) activesupport (>= 6.1) sprockets (>= 3.0.0) - standard (1.50.0) + standard (1.52.0) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) - rubocop (~> 1.75.5) + rubocop (~> 1.81.7) standard-custom (~> 1.0.0) standard-performance (~> 1.8) standard-custom (1.0.2) lint_roller (~> 1.0) rubocop (~> 1.50) - standard-performance (1.8.0) + standard-performance (1.9.0) lint_roller (~> 1.1) - rubocop-performance (~> 1.25.0) + rubocop-performance (~> 1.26.0) stimulus-rails (1.3.4) railties (>= 6.0.0) stringio (3.1.8) @@ -448,9 +448,9 @@ GEM tzinfo (2.0.6) concurrent-ruby (~> 1.0) unaccent (0.4.0) - unicode-display_width (3.1.4) - unicode-emoji (~> 4.0, >= 4.0.4) - unicode-emoji (4.0.4) + unicode-display_width (3.2.0) + unicode-emoji (~> 4.1) + unicode-emoji (4.1.0) uri (1.1.1) useragent (0.16.11) versioncake (4.1.1) diff --git a/app/models/user/authentication.rb b/app/models/user/authentication.rb index d64058ad..f6a74c68 100644 --- a/app/models/user/authentication.rb +++ b/app/models/user/authentication.rb @@ -1,6 +1,8 @@ class User::Authentication < ApplicationRecord include Delivered + delivered :now + include Eventable belongs_to :user diff --git a/config/puma.rb b/config/puma.rb index 1ab0df96..4c2b7863 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -29,7 +29,7 @@ # This directive tells Puma to first boot the application and load code # before forking the application. This takes advantage of Copy On Write # process behavior so workers use less memory. -web_concurrency = (ENV.fetch("WEB_CONCURRENCY") { 1 }).to_i +web_concurrency = ENV.fetch("WEB_CONCURRENCY", 1).to_i if web_concurrency > 1 workers web_concurrency preload_app!