質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top