lib/soapy_cake/request.rb in soapy_cake-1.16.1 vs lib/soapy_cake/request.rb in soapy_cake-1.16.2

- old
+ new

@@ -38,13 +38,13 @@ def api_path "#{(role == 'admin') ? '' : "/#{role.pluralize}"}/api/#{version}" end def xml_params(xml) - xml.api_key api_key + xml.api_key(api_key) opts.each do |k, v| - xml.public_send(k.to_sym, format_param(k, v)) + xml.public_send(k, format_param(k, v)) end end def xml_namespaces { @@ -54,10 +54,10 @@ end def format_param(key, value) return time_converter.to_cake(value) if DATE_CLASSES.include?(value.class) - if key.to_s.end_with?('_date') + if key.to_s.end_with?('_date'.freeze) fail Error, "You need to use a Time/DateTime/Date object for '#{key}'" end value end