Ruby on rails 我如何告诉Desive在我的范围内使用用户模型?

Ruby on rails 我如何告诉Desive在我的范围内使用用户模型?,ruby-on-rails,ruby,devise,Ruby On Rails,Ruby,Devise,我刚刚开始研究Desive gem,但在使用用户类的正确模型时遇到了问题。我是否可以告诉Desive在我的模块结构中查找用户模型,即我是否可以指定用户模型位于该模块结构内: Module1/Module2/User 而不是依赖于它在默认范围内 很抱歉问这么短的问题,如果你还需要什么,请告诉我 当您为声明使用design\u中的class\u名称选项时,designe将使用您期望的类。本文提供了一些例子 从文件中: # * class_name: setup a different class

我刚刚开始研究Desive gem,但在使用
用户
类的正确模型时遇到了问题。我是否可以告诉Desive在我的模块结构中查找
用户
模型,即我是否可以指定
用户
模型位于该模块结构内:

Module1/Module2/User
而不是依赖于它在默认范围内


很抱歉问这么短的问题,如果你还需要什么,请告诉我

当您为声明使用
design\u中的
class\u名称
选项时,designe将使用您期望的类。本文提供了一些例子

从文件中:

#  * class_name: setup a different class to be looked up by devise, if it cannot be
#    properly found by the route name.
#
#      devise_for :users, class_name: 'Account'

当您为
声明使用
design\u中的
class\u名称
选项时,designe将使用您期望的类。本文提供了一些例子

从文件中:

#  * class_name: setup a different class to be looked up by devise, if it cannot be
#    properly found by the route name.
#
#      devise_for :users, class_name: 'Account'