2

I'm not a native english speaker, but if you are, how would you name this Rails ActiveRecord join model "???" in a semantic fashion?

User has_many :blogs, through: ???
User has_many ???

??? belongs_to :user
??? belongs_to :blog

Blog has_many :owners, class_name: 'User', through: ???
Blog has_many ???

Things like "Blogger" don't sound so well: User has_many :bloggers

svoop
  • 3,318
  • 1
  • 23
  • 41

1 Answers1

1

I think I would go with 'authorships'. To me, 'bloggings' are the processes of writing to a blog. Of course, what matters is that the chosen word makes sense to you, since you're the one who needs to remember what it means when working with them.

MrTheWalrus
  • 9,670
  • 2
  • 42
  • 66
  • Nice one! The only problem could be subsequent models which are linked with User in a similar fashion. BlogAuthorship or BlogOwnership could be alternatives then. – svoop Jan 10 '12 at 17:22
  • Or even a polymorphic Ownership join model. – svoop Jan 10 '12 at 17:42