app/controllers/application_controller.rb
def after_sign_out_path_for(resource_or_scope)
    if logout_path.present?
      logout_path
    else
      super(resource_or_scope)
    end
  end
# After signing out from the local application,
# redirect to the logout path for the Login app
After signing out from the local application,
redirect to the logout path for the Login app
After signing out from the local application redirect to the logout path for the Login app
def after_sign_out_path_for(resource_or_scope)
    if logout_path.present?
      logout_path
    else
      super(resource_or_scope)
    end
  end
def after_sign_out_path_for ( resource_or_scope ) if logout_path . present? logout_path else super ( resource_or_scope ) end end
After signing out from the local application,
redirect to the logout path for the Login app
After signing out from the local application redirect to the logout path for the Login app
resource_or_scope