add devise async and suckerpunch

This commit is contained in:
Torsten 2023-01-24 19:04:53 +02:00
parent 07b09e54de
commit e3d55fbbfa
5 changed files with 13 additions and 1 deletions

View File

@ -27,6 +27,7 @@ gem "simple_form" , "5.1.0"
gem "simple_form_tailwind_css"
gem 'kaminari'
gem 'ransack'
gem "devise-async"
gem "passenger" , "6.0.15" , require: "phusion_passenger/rack_handler"
gem "bootsnap", require: false
@ -52,3 +53,5 @@ group :test do
end
gem "pundit", "~> 2.3"
gem "sucker_punch", "~> 3.1"

View File

@ -137,6 +137,9 @@ GEM
railties (>= 4.1.0)
responders
warden (~> 1.2.3)
devise-async (1.0.0)
activejob (>= 5.0)
devise (>= 4.0)
erubi (1.12.0)
erubis (2.7.0)
execjs (2.8.1)
@ -363,6 +366,8 @@ GEM
activesupport (>= 5.2)
sprockets (>= 3.0.0)
ssrf_filter (1.1.1)
sucker_punch (3.1.0)
concurrent-ruby (~> 1.0)
tailwindcss-rails (2.0.21-x86_64-linux)
railties (>= 6.0.0)
temple (0.10.0)
@ -421,6 +426,7 @@ DEPENDENCIES
carrierwave (>= 3.0.0.beta, < 4.0)
debug
devise
devise-async
guard
guard-minitest
haml-rails
@ -441,6 +447,7 @@ DEPENDENCIES
simple_form_tailwind_css
sprockets (= 4.1.1)
sprockets-rails
sucker_punch (~> 3.1)
tailwindcss-rails
thredded (~> 1.0)
web-console

View File

@ -2,7 +2,7 @@ class Member < ApplicationRecord
# Include default devise modules. Others available are:
# , :lockable, :timeoutable, :trackable and :omniauthable
devise :database_authenticatable, :registerable,:confirmable,
:recoverable, :rememberable, :validatable
:recoverable, :rememberable, :validatable, :async
mount_uploader :picture, PictureUploader
has_many :stories

View File

@ -309,3 +309,4 @@ Devise.setup do |config|
# changed. Defaults to true, so a user is signed in automatically after changing a password.
# config.sign_in_after_change_password = true
end
Devise::Async.backend = :sucker_punch

View File

@ -0,0 +1 @@
require 'sucker_punch/async_syntax'