Skip to content

Instantly share code, notes, and snippets.

@lobo-tuerto
Created December 1, 2008 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lobo-tuerto/30842 to your computer and use it in GitHub Desktop.
Save lobo-tuerto/30842 to your computer and use it in GitHub Desktop.
@operaciones = all(:servicio_id => @servicio.id, :tipo_de_operacion_id => @tipo_de_operacion_ids).serialize
@operaciones.map! {|i| i[:nombre] = @tipo_de_operacion.find{|to| to.id == i[:tipo_de_operacion_id]}.nombre; i}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment