Revision 144d6f9f
Added by Joseph Magen about 10 years ago
app/models/taxonomy.rb | ||
---|---|---|
define_method(key) do
|
||
klass = hash_key_to_class(key)
|
||
if ignore?(klass)
|
||
return User.unscoped.except_admin.pluck(:id) if klass == "User"
|
||
return User.unscoped.except_admin.map(&:id) if klass == "User"
|
||
return klass.constantize.pluck(:id)
|
||
else
|
||
taxable_taxonomies.where(:taxable_type => klass).pluck(:taxable_id)
|
Also available in: Unified diff
fixes #4995 - editing location with 'all users' checked fails on edit page in postgres