标签: ruby-on-rails devise
如何在设计中将:includes => :account添加到current_user finder方法?
:includes => :account
由于
答案 0 :(得分:1)
你可以这样做:
class User < ActiveRecord::Base devise :your, :devise, :modules default_scope :includes => :account end
将始终包含该帐户。