File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
elasticsearch-api/utils/thor/templates Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 24
24
25
25
method = <%= @spec.http_method %>
26
26
<%- if @spec.method_name == 'termvectors' %>
27
- endpoint = arguments.delete(:endpoint) || '_termvectors'
27
+ arguments.delete(:endpoint)
28
28
<%- end -%>
29
29
path = <%= @spec.http_path %>
30
30
<%- if
[email protected] ? || needs_ignore_404?(@spec.endpoint_name) || needs_complex_ignore_404?(@spec.endpoint_name)
-%>
Original file line number Diff line number Diff line change 63
63
alias_method :<%= @spec.method_name %> ?, :<%= @spec.method_name %>
64
64
<%- end -%>
65
65
<%- if @spec.method_name == 'termvectors' %>
66
-
67
66
# Deprecated: Use the plural version, {#termvectors}
68
67
#
69
68
def termvector(arguments={})
70
- termvectors(arguments.merge endpoint: '_termvector')
69
+ warn "[DEPRECATION] `termvector` is deprecated. Please use the plural version, `termvectors` instead."
70
+ termvectors(arguments.merge(endpoint: '_termvector'))
71
71
end
72
72
<%- end -%>
73
73
<%- @spec.namespace_depth.downto(1) do |i| -%>
You can’t perform that action at this time.
0 commit comments