Sha256: 3687e85d66162fa7e74dd0f7769940095b0ae86b7283a982913225b8ebcf2358

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 Bytes

Contents

l = []
atributos_index.each do |atr|  
  l << atr.to_sym
end 
json.array!(@registros) do |registro|
  if params[:labelvalue] && params[:labelvalue] == "1"
    json.label registro.busca_etiqueta
    json.value registro.busca_valor
  else
    json.extract! registro, *l
    json.url admin_basica_url(registro, format: :json)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
msip-2.2.0.alfa3 app/views/msip/modelos/index.json.jbuilder