Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
private
# Use callbacks to share common setup or constraints between actions.
def set_convenio
@convenio = Convenio.find(params[:id])
end
# Never trust parameters from the scary internet, only allow the white list through.
def convenio_params
params.require(:convenio).permit(:numeroconvenio, :uf, :codigosiafi, :nomemunicipio, :situacaoconvenio, :numerooriginal, :objetoconvenio, :codigoorgaosuperior, :nomeorgaosuperior, :codigoconcedente, :nomeconcedente, :codigoconvenente, :nomeconvenente, :tipoenteconvenente, :valorconvenio, :valorliberado, :datapublicacao, :datainiciovigencia, :datafimvigencia, :valorcontrapartida, :dataultimaliberacao, :valorultimaliberacao)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment