removed end date sort

This commit is contained in:
Harry Bomrah 2015-12-08 16:32:43 +08:00
parent b81faab887
commit ff4db243e1
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class Experience
before_validation :add_http 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 def duration
if !self.start_date.nil? or !self.end_date.nil? if !self.start_date.nil? or !self.end_date.nil?