Closed luiz-brandao closed 8 years ago
Some model attributes needs to be set through setter methods, but FactoryMuffin only sets the attributes directly. This fix checks for the presence of a setter method on the model and calls it instead. I also includes a camelize function.
I hope it's all good now.
Thanks. I'll make the remaining small change. ;)
Isn't it already static?
See the commit I just pushed for what I meant.
I got it! ;)
Some model attributes needs to be set through setter methods, but FactoryMuffin only sets the attributes directly. This fix checks for the presence of a setter method on the model and calls it instead. I also includes a camelize function.