You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ActiveRecord::StatementInvalid: Mysql::Error: Unknown column 'dependents.group_id' in 'where clause': SELECT DISTINCT users.* FROM users INNER JOIN dependents ON users.id = dependents.user_id WHERE ((dependents.group_id = 2) AND ((dependent_group_relations.is_shared = 1)))
it use ((dependents.group_id = 2) AND ((dependent_group_relations.is_shared = 1)) but should be ((dependent_group_relations.group_id = 2) AND ((dependent_group_relations.is_shared = 1))
Thanks
The text was updated successfully, but these errors were encountered:
Hi it's seems like this plugin not work with act_as_paranoid ((
Use like this:
has_many :dependent_group_relations, :dependent => :destroy
with_options :uniq => true do |w|
w.has_many :shared_dependents, :through => :dependent_group_relations, :source => :dependent
w.has_many :shared_users, :through => :shared_dependents, :source => :user
end
And have a problem:
ActiveRecord::StatementInvalid: Mysql::Error: Unknown column 'dependents.group_id' in 'where clause': SELECT DISTINCT
users
.* FROMusers
INNER JOINdependents
ONusers
.id =dependents
.user_id WHERE ((dependents
.group_id = 2) AND ((dependent_group_relations
.is_shared
= 1)))it use ((
dependents
.group_id = 2) AND ((dependent_group_relations
.is_shared
= 1)) but should be ((dependent_group_relations
.group_id = 2) AND ((dependent_group_relations
.is_shared
= 1))Thanks
The text was updated successfully, but these errors were encountered: