merge
This commit is contained in:
commit
5423adfc27
3
Gemfile
3
Gemfile
@ -27,6 +27,7 @@ gem "simple_form" , "5.1.0"
|
|||||||
gem "simple_form_tailwind_css"
|
gem "simple_form_tailwind_css"
|
||||||
gem 'kaminari'
|
gem 'kaminari'
|
||||||
gem 'ransack'
|
gem 'ransack'
|
||||||
|
gem "devise-async"
|
||||||
|
|
||||||
gem "passenger" , "6.0.15" , require: "phusion_passenger/rack_handler"
|
gem "passenger" , "6.0.15" , require: "phusion_passenger/rack_handler"
|
||||||
gem "bootsnap", require: false
|
gem "bootsnap", require: false
|
||||||
@ -52,3 +53,5 @@ group :test do
|
|||||||
end
|
end
|
||||||
|
|
||||||
gem "pundit", "~> 2.3"
|
gem "pundit", "~> 2.3"
|
||||||
|
|
||||||
|
gem "sucker_punch", "~> 3.1"
|
||||||
|
@ -137,6 +137,9 @@ GEM
|
|||||||
railties (>= 4.1.0)
|
railties (>= 4.1.0)
|
||||||
responders
|
responders
|
||||||
warden (~> 1.2.3)
|
warden (~> 1.2.3)
|
||||||
|
devise-async (1.0.0)
|
||||||
|
activejob (>= 5.0)
|
||||||
|
devise (>= 4.0)
|
||||||
erubi (1.12.0)
|
erubi (1.12.0)
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
execjs (2.8.1)
|
execjs (2.8.1)
|
||||||
@ -363,6 +366,8 @@ GEM
|
|||||||
activesupport (>= 5.2)
|
activesupport (>= 5.2)
|
||||||
sprockets (>= 3.0.0)
|
sprockets (>= 3.0.0)
|
||||||
ssrf_filter (1.1.1)
|
ssrf_filter (1.1.1)
|
||||||
|
sucker_punch (3.1.0)
|
||||||
|
concurrent-ruby (~> 1.0)
|
||||||
tailwindcss-rails (2.0.21-x86_64-linux)
|
tailwindcss-rails (2.0.21-x86_64-linux)
|
||||||
railties (>= 6.0.0)
|
railties (>= 6.0.0)
|
||||||
temple (0.10.0)
|
temple (0.10.0)
|
||||||
@ -421,6 +426,7 @@ DEPENDENCIES
|
|||||||
carrierwave (>= 3.0.0.beta, < 4.0)
|
carrierwave (>= 3.0.0.beta, < 4.0)
|
||||||
debug
|
debug
|
||||||
devise
|
devise
|
||||||
|
devise-async
|
||||||
guard
|
guard
|
||||||
guard-minitest
|
guard-minitest
|
||||||
haml-rails
|
haml-rails
|
||||||
@ -441,6 +447,7 @@ DEPENDENCIES
|
|||||||
simple_form_tailwind_css
|
simple_form_tailwind_css
|
||||||
sprockets (= 4.1.1)
|
sprockets (= 4.1.1)
|
||||||
sprockets-rails
|
sprockets-rails
|
||||||
|
sucker_punch (~> 3.1)
|
||||||
tailwindcss-rails
|
tailwindcss-rails
|
||||||
thredded (~> 1.0)
|
thredded (~> 1.0)
|
||||||
web-console
|
web-console
|
||||||
|
@ -2,7 +2,7 @@ class Member < ApplicationRecord
|
|||||||
# Include default devise modules. Others available are:
|
# Include default devise modules. Others available are:
|
||||||
# , :lockable, :timeoutable, :trackable and :omniauthable
|
# , :lockable, :timeoutable, :trackable and :omniauthable
|
||||||
devise :database_authenticatable, :registerable,:confirmable,
|
devise :database_authenticatable, :registerable,:confirmable,
|
||||||
:recoverable, :rememberable, :validatable
|
:recoverable, :rememberable, :validatable, :async
|
||||||
|
|
||||||
mount_uploader :picture, PictureUploader
|
mount_uploader :picture, PictureUploader
|
||||||
has_many :stories
|
has_many :stories
|
||||||
|
@ -309,3 +309,4 @@ Devise.setup do |config|
|
|||||||
# changed. Defaults to true, so a user is signed in automatically after changing a password.
|
# changed. Defaults to true, so a user is signed in automatically after changing a password.
|
||||||
# config.sign_in_after_change_password = true
|
# config.sign_in_after_change_password = true
|
||||||
end
|
end
|
||||||
|
Devise::Async.backend = :sucker_punch
|
||||||
|
1
config/initializers/sucker_punch.rb
Normal file
1
config/initializers/sucker_punch.rb
Normal file
@ -0,0 +1 @@
|
|||||||
|
require 'sucker_punch/async_syntax'
|
Loading…
Reference in New Issue
Block a user