I have a ruby function with the following signature:
def botao_adicionar(model, prefix = "/#{model.name.tableize}", callback = nil)
and I want to make it a call without pass the prefix
argument, so it takes the default from function that I defined above. So I call it this way:
botao_adicionar(model=ArrendamentoContrato, callback="bind_unidades_consumidoras()")
And it associates the callback
value to prefix
variable. I believe it's matching by the order of arguments, but I explicitly called the name of the argument in the function call... that shouldn't work? Thanks!