diff --git a/lib/miam/template_helper.rb b/lib/miam/template_helper.rb index fee461b..fa3064d 100644 --- a/lib/miam/template_helper.rb +++ b/lib/miam/template_helper.rb @@ -20,7 +20,7 @@ def context end def required(*args) - missing_args = args - @context.keys + missing_args = args.map(&:to_s) - @context.keys unless missing_args.empty? ex = ArgumentError.new("Missing arguments: #{missing_args.join(", ")} in '#{@template_name}'") ex.set_backtrace(@caller)