Project

General

Profile

« Previous | Next » 

Revision 3ab56604

Added by Ondřej Pražák almost 6 years ago

Fixes #23918 - Find correct scope when updating taxonomy

View differences:

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