From 744c021e1ce02d26cb07e4762f757603409212bc Mon Sep 17 00:00:00 2001 From: SylorHuang Date: Thu, 4 Apr 2019 11:15:02 +0800 Subject: [PATCH] partners --- app/controllers/managements_controller.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index 3040c347..433d2921 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -1174,17 +1174,7 @@ end def partners @menu_type = 6 @sub_type = 3 -<<<<<<< HEAD - @partners = Partner.includes(:school) - @limit = 10 - @page = params['page'] || 1 - @partners_count = @partners.count - - @total_pages = (@partners_count / 10.0).ceil - @partners = paginateHelper @partners, @limit -======= @partners = Partner.includes(:school).order("created_at desc") ->>>>>>> 0aec53dda74a8e3e3ac8c0f2cd70e38a65bfecbe end def all_partners