We are building out apps that have Models that are not database components. We are curious to learn what others are doing in the rails community to address this subject.
We are struggling with where to put them.
Should we have:
app/models/domain
or
app/domain/models
or perhaps
app/models # Business Models
app/models/ar # Active Record Models
or perhaps
app/models/domain/ # Business Models
app/models/domain/ar # Active Record Models
Part of this is that we are struggling with how close to be to rails standards and how much to create a structure that will be good for what we need.
If we think of the objects as Service Objects, we could have
app/models/service-object
and
app/models/ # For plain active record
Another route to go down is not have stuff within app, e.g.
/service_objects
instead of
/app/models/service_objects
Presumably if we want access via a rails app we're better of using app/ in order to take advantage of convention over configuration.