Skip to content

Commit

Permalink
Listado de victims ordenado por caso y por id de victima
Browse files Browse the repository at this point in the history
  • Loading branch information
vtamara committed Dec 1, 2018
1 parent ef0c89b commit 8cb9559
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sivel2_gen/concerns/controllers/victimas_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ def atributos_index
end

def self.index_reordenar(c)
c.reorder(:id_caso, :id)
c.reorder([:id_caso, :id])
end


def index(c = nil)
if c == nil
c = Sivel2Gen::Victima.all.order(:id_caso, :id)
c = Sivel2Gen::Victima.all.order([:id_caso, :id])
end
@pconsolidado = Sivel2Gen::Pconsolidado.
where(fechadeshabilitacion: nil).order(:id).map { |r|
Expand Down

0 comments on commit 8cb9559

Please sign in to comment.