lib/roadie/style_attribute_builder.rb in roadie-3.1.0 vs lib/roadie/style_attribute_builder.rb in roadie-3.1.1
- old
+ new
@@ -7,10 +7,10 @@
def <<(style)
@styles << style
end
def attribute_string
- stable_sort(@styles).map(&:to_s).join(';')
+ Deduplicator.apply(stable_sort(@styles).map(&:to_s)).join(';')
end
private
def stable_sort(list)
# Ruby's sort is unstable for performance reasons. We need it to be