"George Moschovitis" <george.moschovitis / gmail.com> wrote

> > What does this do to the tables? Can Comment include 'Orderable'
multiple
> > times with different :scopes? How about ordering on either end of N-M
> > relations?
>
> this adds columns to the tables. A parametrized mixin can be included
> multiple times with different parameters.

Does it allow duck-typing?

class Posting

   # response can be Approval or Disapproval
   # no inheritance relation require

   has_many :responses, [Approval, Disapproval]

   include Orderable, :scope => responses

end

I've put this mixin on the container end in this case.