Ruby on Rails Friday, April 25, 2014

On 25 April 2014 10:42, ngollan@googlemail.com <ngollan@gmail.com> wrote:
>
>
> 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.

OK, thanks for the explanation. I think with any 'opinionated'
framework like Rails there comes a point where one either has to go
with the mechanisms that the framework provides or to use a different
framework. I don't think there is any point in making statements like
"All in all, it's another case of Rails/AR being a humongous pile of
<organically-grown code> that is pretty much unadaptable to your fancy
concepts unless you want to sit down and rewrite large parts of it".
If you don't like it then don't use it. Or don't use fancy concepts
that don't fit well with Rails.

Colin

--
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/CAL%3D0gLuTJkLaEQfuSqwCMm-ad5g6%2BTmu1YbibX50WDBKw4nZoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment