app/controllers/concerns/orderable.rb in apicasso-0.2.15 vs app/controllers/concerns/orderable.rb in apicasso-0.2.16

- old
+ new

@@ -28,10 +28,11 @@ private # Parsing of attributes to avoid empty starts in case browser passes "+" as " " def parse_attr(attr) return attr.gsub(/^\ (.*)/, '\1') if attr.starts_with?(' ') - attr[1..-1] + return attr[1..-1] if attr.starts_with?('+') || attr.starts_with?('-') + attr end # Ordering sign parse, which separates def parse_sign(attr) attr =~ /\A[+-]/ ? attr.slice!(0) : '+'