-
Notifications
You must be signed in to change notification settings - Fork 23
Description
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.* 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