lib/soapy_cake/request.rb in soapy_cake-1.11.5 vs lib/soapy_cake/request.rb in soapy_cake-1.11.6
- old
+ new
@@ -17,11 +17,11 @@
def xml
Nokogiri::XML::Builder.new do |xml|
xml['env'].Envelope(xml_namespaces) do
xml.Header
xml.Body do
- xml['cake'].send(method.camelize.to_sym) do
+ xml['cake'].public_send(method.camelize.to_sym) do
xml_params(xml)
end
end
end
end.to_xml
@@ -38,10 +38,10 @@
end
def xml_params(xml)
xml.api_key api_key
opts.each do |k, v|
- xml.send(k.to_sym, format_param(v))
+ xml.public_send(k.to_sym, format_param(v))
end
end
def xml_namespaces
{