some change filter
This commit is contained in:
parent
ff4db243e1
commit
c70bafc599
|
@ -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') }
|
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?
|
||||||
|
@ -54,7 +54,6 @@ class Experience
|
||||||
"plugin_data_title" => I18n.t("personal_experience.#{t}")
|
"plugin_data_title" => I18n.t("personal_experience.#{t}")
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
plugin_datas = datas.sort_for_frontend.collect do |p|
|
plugin_datas = datas.sort_for_frontend.collect do |p|
|
||||||
|
|
||||||
pd_data = []
|
pd_data = []
|
||||||
|
|
Loading…
Reference in New Issue