Hi,
Is it possible to combine separate datasets with Sequel? This is an
example from Rails 3 scopes/Arel that I came across.
class User < ActiveRecord::Base
scope :published, lambda {
joins(:posts).group("users.id") & Post.published
}
end
Or just:
User.joins(:posts).group("users.id") & Post.published
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en.