removed end date sort
This commit is contained in:
parent
b81faab887
commit
ff4db243e1
|
@ -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?
|
||||||
|
|
Loading…
Reference in New Issue