Removed Rails 5 deprecation warnings
@ -1,6 +1,11 @@
class Devise::TwoFactorAuthenticationController < DeviseController
if Rails::VERSION::MAJOR >= 4
prepend_before_action :authenticate_scope!
before_action :prepare_and_validate, :handle_two_factor_authentication
else
prepend_before_filter :authenticate_scope!
before_filter :prepare_and_validate, :handle_two_factor_authentication
end
def show
@ -4,8 +4,12 @@ module TwoFactorAuthentication
extend ActiveSupport::Concern
included do
before_action :handle_two_factor_authentication
before_filter :handle_two_factor_authentication
private
@ -1,5 +1,9 @@
class HomeController < ApplicationController
before_action :authenticate_user!, only: :dashboard
before_filter :authenticate_user!, only: :dashboard
def index