Good example can be
class Category < Sequel::Model
one_to_many :products
one_to_many :five_newest_products, class: 'Product' do |ds|
de.reverse_order(:id).limit(5)
end
end
Where purpose of five_newest_products association is just for eager
loading, joining etc...
On Friday, July 31, 2015 at 2:05:27 PM UTC+2, Petr Kaleta wrote:
>
> Hey Is it possible to define an association but without "methods added"?
> So that it will not add `add_*`, `remove_*` and 'remove_all_*` methods?
>
> Thanks
>
> Petr
>
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.