module Authentifyd class ApplicationController < ActionController::Base include Localyzed::LocalyzedController end end class ActionController::Base def after_sign_out_path_for(resource_or_scope) params[:callback_url] || session[:referrer] || root_path end end