Add exclude filter for ajax call

This commit is contained in:
Alexander Meindl 2017-11-18 16:55:25 +01:00
parent ed0de11c75
commit 1f7046dfd7

View File

@ -216,7 +216,7 @@ module Additionals
partial: 'additionals/select2_ajax_call.js',
formats: [:js],
locals: { field_id: sanitize_to_id(name),
ajax_url: send("auto_complete_#{type}_path", project_id: @project),
ajax_url: send("auto_complete_#{type}_path", project_id: @project, user_id: options[:user_id]),
options: options })
safe_join(s)
end