Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-10-29 23:33:42 +01:00
12 Zeilen
210 B
Ruby
12 Zeilen
210 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module ::CustomWizard
|
||
|
module LiquidFilter
|
||
|
module FirstNonEmpty
|
||
|
def first_non_empty(*multiple)
|
||
|
multiple.find { |var| var.present? }
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|