@ -1184,7 +1184,7 @@ end
def partners
@menu_type = 6
@sub_type = 3
@partners = Partner.includes(:school).order("created_at desc")
@partners = Partner.includes(:school).order("partners.created_at desc")
@partners = @partners.where("concat(schools.name) like ? ", "%#{params[:search]}%") unless params[:search].blank?
@current_partner = nil
@ -1,5 +1,5 @@
class Customer < ActiveRecord::Base
default_scope :order => 'created_at desc'
default_scope :order => 'customers.created_at desc'
belongs_to :partner
has_one :school
has_many :users