From ff4db243e1dba02f137ad425331c2d8b4c3cbeac Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 8 Dec 2015 16:32:43 +0800 Subject: [PATCH] removed end date sort --- app/models/experience.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/experience.rb b/app/models/experience.rb index 7241401..03a5ad6 100644 --- a/app/models/experience.rb +++ b/app/models/experience.rb @@ -25,7 +25,7 @@ class Experience before_validation :add_http - scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:start_date=>'desc', :end_date => "asc") } + scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:start_date=>'desc') } def duration if !self.start_date.nil? or !self.end_date.nil?