Sha256: 862840b3d5d70d9ada0ebc2491ba8f2c704f042a4bfe51faec76729611fe975c
Contents?: true
Size: 336 Bytes
Versions: 14
Compression:
Stored size: 336 Bytes
Contents
module Queries module User class FetchInGroupRel < Inquery::Query::Chainable relation fields: 1 def call return ::User.where(%( id IN ( SELECT user_id FROM GROUPS_USERS WHERE group_id IN ( #{relation.to_sql} ) ) )) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems