I'm sure it's too late now, but for future reference I've always just seen it put in app/models
. It's still a model! ActiveRecord goodness is just an implementation detail.
Rails conventions: Garb model
-
30-05-2022 - |
Pregunta
I'm using the Garb gem to access Google Analytics data for my site. I've created the model that extends Garb::Model, but I can't find any information on Rails conventions for which directory should contain such a table-less model; is it just app/models/? or lib/? Is there a way I should mark this model to indicate that its table-less?
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow