Corrección de errores y mejoras en la visualización del glosario
This commit is contained in:
parent
693eb3ee50
commit
c6568888b1
9 changed files with 25 additions and 19 deletions
|
@ -355,9 +355,10 @@ class GlossaryController < ApplicationController
|
|||
if (terms and params[:latest_days] and !params[:latest_days].empty?)
|
||||
limitsec = Time.now.to_i - params[:latest_days].to_i * 60 * 60 * 24
|
||||
limittm = Time.at(limitsec)
|
||||
terms.delete_if {|prm|
|
||||
(prm.datetime < limittm)
|
||||
}
|
||||
# terms.delete_if {|prm| (prm.datetime < limittm)}
|
||||
recent_terms = []
|
||||
terms.collect{|prm| recent_terms << prm if prm.datetime >= limittm}
|
||||
recent_terms
|
||||
else
|
||||
terms
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue