Added eager load to admin contact

This commit is contained in:
Priit Tark 2015-03-31 16:49:12 +03:00
parent 2bfc227322
commit c6c58b177a

View file

@ -14,6 +14,6 @@ class Admin::ContactsController < AdminController
private
def set_contact
@contact = Contact.find(params[:id])
@contact = Contact.includes(domains: :registrar).find(params[:id])
end
end