mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 17:30:43 -07:00
Use to_liquid_value in uniq filter (#1948)
* Use to_liquid_value in uniq filter * Bump version to 5.8.4
This commit is contained in:
@@ -1081,7 +1081,10 @@ module Liquid
|
||||
end
|
||||
|
||||
def uniq(&block)
|
||||
to_a.uniq(&block)
|
||||
to_a.uniq do |item|
|
||||
item = Utils.to_liquid_value(item)
|
||||
block ? yield(item) : item
|
||||
end
|
||||
end
|
||||
|
||||
def compact
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Liquid
|
||||
VERSION = "5.8.3"
|
||||
VERSION = "5.8.4"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user