From c70bafc5994e41046222a1a382d7857f607ef641 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 8 Dec 2015 17:57:55 +0800 Subject: [PATCH] some change filter --- app/models/experience.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/experience.rb b/app/models/experience.rb index 03a5ad6..0066fd9 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') } + 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? @@ -54,7 +54,6 @@ class Experience "plugin_data_title" => I18n.t("personal_experience.#{t}") } end - plugin_datas = datas.sort_for_frontend.collect do |p| pd_data = []