plataformatec/devise — Issue #1380: How to include associations when loading User object ?
Author: lphm
Created: 2011-10-12 11:54:56+00:00
State: open

Hello

How to use Eager Loading Associations when Devise loads User Object (current_user) ?

Example :
user = User.includes(:address).limit(10)

Thanks