Skip to content

Commit

Permalink
Merge pull request #1831 from Shopify/gg-add-named-params-docs
Browse files Browse the repository at this point in the history
Update liquid docs for named parameters
  • Loading branch information
graygilmore authored Oct 28, 2024
2 parents b355378 + 8d7ed70 commit 6d58c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/liquid/standardfilters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ def at_most(input, n)
# - [`nil`](/docs/api/liquid/basics#nil)
# @liquid_syntax variable | default: variable
# @liquid_return [untyped]
# @liquid_optional_param allow_false [boolean] Whether to use false values instead of the default.
# @liquid_optional_param allow_false: [boolean] Whether to use false values instead of the default.
def default(input, default_value = '', options = {})
options = {} unless options.is_a?(Hash)
false_check = options['allow_false'] ? input.nil? : !Liquid::Utils.to_liquid_value(input)
Expand Down

0 comments on commit 6d58c41

Please sign in to comment.