Chnaged noteable class check

This commit is contained in:
Phil Hughes 2016-07-14 08:44:22 +01:00
parent 08f14ef448
commit de6ca8ef3a

View file

@ -1,5 +1,5 @@
- project = @target_project || @project
- noteable_class = @noteable.nil? ? nil : @noteable.class
- noteable_class = @noteable.class if @noteable.present?
:javascript
GitLab.GfmAutoComplete.dataSource = "#{autocomplete_sources_namespace_project_path(project.namespace, project, type: noteable_class, type_id: params[:id])}"