Ruby on Rails Friday, April 25, 2014



On Friday, April 25, 2014 10:20:03 AM UTC+2, Colin Law wrote:

Since you did not quote a previous message then the assumption is that
you are the OP.

The problem in this case was an empty original message with all the semantics in the subject. 
 
What I don't understand is why you would want to do that.

Because in this case the polymorphic aspect of the subject side of the join table is entirely defined by the Report instance (a report only ever covers one type of subject, but potentially a lot of them), making it wasteful to put it in the join table (also, polymorphic mas-many-through tends to be a pain). Additionally report instances would be relatively short-lived so integrity over an extended time is not an issue.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e7d2b8e2-2509-4b84-a8d1-7ecbc54ea407%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment