diff --git a/Gemfile b/Gemfile index 7b4847d7..943d7075 100644 --- a/Gemfile +++ b/Gemfile @@ -26,7 +26,7 @@ gem 'will_paginate' gem 'will_paginate-bootstrap' gem 'devise', '~> 4.0' gem 'devise-i18n' -gem 'devise-async' # TODO: bring this to 1.0 after rails5 upgrade +gem 'devise-async', git: "https://github.com/mhfs/devise-async.git", ref: "devise-4.x" # TODO: bring this to 1.0 after rails5 upgrade gem 'bootstrap_form' gem 'font-kit-rails' gem 'nprogress-rails' diff --git a/Gemfile.lock b/Gemfile.lock index 8a4ce15b..7d5c0380 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,11 @@ +GIT + remote: https://github.com/mhfs/devise-async.git + revision: 177f6363a002f7ff28f1d289c8cab7ad8d9cb8c5 + ref: devise-4.x + specs: + devise-async (0.10.2) + devise (>= 4.0) + GIT remote: https://github.com/retrospring/questiongenerator.git revision: c5f8362ff769425d42a94b3a611731eadaa5e0ca @@ -115,8 +123,6 @@ GEM railties (>= 4.1.0, < 6.0) responders warden (~> 1.2.3) - devise-async (0.7.0) - devise (>= 2.2) devise-i18n (1.1.2) diff-lcs (1.3) docile (1.1.5) @@ -637,7 +643,7 @@ DEPENDENCIES database_cleaner delayed_paperclip devise (~> 4.0) - devise-async + devise-async! devise-i18n factory_girl_rails fake_email_validator diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 13d96e03..ef5ee974 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -55,8 +55,8 @@ class ApplicationController < ActionController::Base protected def configure_permitted_parameters - devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:screen_name, :email, :password, :password_confirmation, :remember_me) } - devise_parameter_sanitizer.for(:sign_in) { |u| u.permit(:login, :screen_name, :email, :password, :remember_me) } - devise_parameter_sanitizer.for(:account_update) { |u| u.permit(:screen_name, :email, :password, :password_confirmation, :current_password) } + devise_parameter_sanitizer.permit(:sign_up) { |u| u.permit(:screen_name, :email, :password, :password_confirmation, :remember_me) } + devise_parameter_sanitizer.permit(:sign_in) { |u| u.permit(:login, :screen_name, :email, :password, :remember_me) } + devise_parameter_sanitizer.permit(:account_update) { |u| u.permit(:screen_name, :email, :password, :password_confirmation, :current_password) } end end diff --git a/config/initializers/devise_async.rb b/config/initializers/devise_async.rb index 5e432598..05a1852c 100644 --- a/config/initializers/devise_async.rb +++ b/config/initializers/devise_async.rb @@ -1 +1 @@ -Devise::Async.backend = :sidekiq \ No newline at end of file +Devise::Async.backend = :sidekiq