app/controllers/qa/terms_controller.rb in qa-0.10.2 vs app/controllers/qa/terms_controller.rb in qa-0.11.0
- old
+ new
@@ -12,10 +12,10 @@
render json: @authority.all
end
# Return a list of terms based on a query
def search
- terms = @authority.search(url_search)
+ terms = @authority.method(:search).arity == 2 ? @authority.search(url_search, self) : @authority.search(url_search)
render json: terms
end
# If the subauthority supports it, return all the information for a given term
def show