Jayzen
Results
1
comments of
Jayzen
call includes in the model will solve the N+1 warning ``` class User has_many :roles def roles self.where(your_params).includes(:roles) end end ```