lib/pheme/queue_poller.rb in pheme-5.2.11 vs lib/pheme/queue_poller.rb in pheme-5.2.12

- old
+ new

@@ -89,10 +89,10 @@ body['Message'] = raw_content when :json parsed_content = parse_json(raw_content) body['Message'] = parsed_content else - method_name = "parse_#{format}".to_sym + method_name = :"parse_#{format}" raise ArgumentError, "Unknown format #{format}" unless respond_to?(method_name) parsed_content = __send__(method_name, raw_content) body['Records'] = parsed_content end