diff --git a/Gemfile b/Gemfile index bb83241..554d004 100644 --- a/Gemfile +++ b/Gemfile @@ -11,6 +11,7 @@ unless ENV['CI'] gem 'spring-commands-rspec' gem 'launchy' gem 'github_fast_changelog', require: false + gem 'listen', require: false end group :test do diff --git a/config/initializers/alchemy.rb b/config/initializers/alchemy.rb index 8327370..f1ff0e3 100644 --- a/config/initializers/alchemy.rb +++ b/config/initializers/alchemy.rb @@ -18,3 +18,9 @@ Alchemy.signup_path = '/admin/signup' Alchemy.login_path = '/admin/login' Alchemy.logout_path = '/admin/logout' + +if Alchemy.respond_to?(:logout_method) + Rails.application.config.after_initialize do + Alchemy.logout_method = Devise.sign_out_via + end +end