Revision 3ab56604
Added by Ondřej Pražák almost 6 years ago
app/controllers/concerns/api/v2/taxonomies_controller.rb | ||
---|---|---|
|
||
# overriding public FindCommon#resource_scope to scope only to user's taxonomies
|
||
def resource_scope(*args)
|
||
super.send("my_#{taxonomies_plural}")
|
||
@resource_scope ||= scope_for(resource_class, args).send("my_#{taxonomies_plural}")
|
||
end
|
||
|
||
private
|
Also available in: Unified diff
Fixes #23918 - Find correct scope when updating taxonomy