lib/zuora/utils/envelope.rb in zuora-ruby-0.3.0 vs lib/zuora/utils/envelope.rb in zuora-ruby-0.4.0

- old
+ new

@@ -63,10 +63,9 @@ # Converts from Ruby to Zuora key format. # @param [Symbol] key - e.g. :some_key_name or :some_key_name__c # @return [Symbol] - e.g. :SomeKeyName or :SomeKeyName__c def self.to_zuora_key(key) custom_field_matcher = Regexp.new CUSTOM_FIELD_STRING - matches = custom_field_matcher.match(key.to_s) suffix = '' if matches key = key.to_s[0...-3].to_sym