Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-10 04:12:53 +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
|