From 155e23a73eb183a48af48894e57429f30e2dc4c0 Mon Sep 17 00:00:00 2001 From: MarkMT Date: Thu, 20 Aug 2015 19:17:52 -0500 Subject: [PATCH] Update comment on Devise.add_module The existing comment suggests that add_module is used only for modules that are not provided by Devise itself. --- lib/devise.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/devise.rb b/lib/devise.rb index 40413f4e..d1bbb3b3 100644 --- a/lib/devise.rb +++ b/lib/devise.rb @@ -325,7 +325,12 @@ module Devise mapping end - # Make Devise aware of an 3rd party Devise-module (like invitable). For convenience. + # Register available devise modules. For the standard modules that Devise provides, this method is + # called from lib/devise/modules.rb. Third-party modules need to be added explicitly using this method. + # + # Note that adding a module using this method does not cause it to be used in the authentication + # process. That requires that the module be listed in the arguments passed to the 'devise' method + # in the model class definition. # # == Options: #