Commit 82abf080 authored by Ohad Dahan's avatar Ohad Dahan

Refactor format_order

parent b1b11d28
......@@ -85,8 +85,9 @@ module Nativepluck
def self.format_order(order)
str = ''
return str if order.empty?
order.each_pair { |k,v| str << ",#{k} #{v}" }
str[1..-1]
order.each_pair { |k, v| str << ", #{k} #{v}" }
str[0] = ''.freeze
str
end
module ClassMethods
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment