Skip to content

Commit

Permalink
Fix wrong types to compare in required method
Browse files Browse the repository at this point in the history
  • Loading branch information
aibou committed Jul 25, 2019
1 parent ac2bb2c commit 7adcb84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/miam/template_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7adcb84

Please sign in to comment.