Skip to content

Commit

Permalink
Fix SQLite3::SQLException: ambiguous column name: id
Browse files Browse the repository at this point in the history
  • Loading branch information
dwbutler committed May 2, 2017
1 parent baa2abc commit 21ab8c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/groupify/adapter/active_record/group_member.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def in_only_groups(*groups)
return none unless groups.present?

in_all_groups(*groups).
where.not(id: in_other_groups(*groups).select(:id)).
where.not(id: in_other_groups(*groups).select("#{quoted_table_name}.#{connection.quote_column_name('id')}")).
uniq
end

Expand Down

0 comments on commit 21ab8c5

Please sign in to comment.