lib/elasticsearch/api/actions/indices/put_template.rb in elasticsearch-api-1.0.6 vs lib/elasticsearch/api/actions/indices/put_template.rb in elasticsearch-api-1.0.7

- old
+ new

@@ -24,10 +24,10 @@ def put_template(arguments={}) raise ArgumentError, "Required argument 'name' missing" unless arguments[:name] raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] valid_params = [ :create, :order, :timeout ] - method = 'PUT' + method = HTTP_PUT path = Utils.__pathify '_template', Utils.__escape(arguments[:name]) params = Utils.__validate_and_extract_params arguments, valid_params body = arguments[:body]