Skip to content

Commit 7e88903

Browse files
committed
fix: Convert Devise.sign_out_via to String
Since lastest Alchemy main (8.1.0.a) this needs to be a String and cannot be a Symbol.
1 parent e05fccf commit 7e88903

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

config/initializers/alchemy.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@
3838
Alchemy.user_class_name = "Spree::User"
3939
Alchemy.current_user_method = :spree_current_user
4040

41-
if Alchemy.respond_to?(:logout_method)
42-
Rails.application.config.after_initialize do
43-
Alchemy.logout_method = Devise.sign_out_via
44-
end
41+
Rails.application.config.after_initialize do
42+
Alchemy.logout_method = Devise.sign_out_via.to_s
4543
end
4644
end
4745

0 commit comments

Comments
 (0)