Skip to content

Commit

Permalink
Merge pull request #807 from casperisfine/avoid-anonymous-eval
Browse files Browse the repository at this point in the history
Avoid anonymous eval
  • Loading branch information
rafaelfranca authored Feb 8, 2023
2 parents fd31f45 + 8cc8677 commit 264d8b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thor/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def start(given_args = ARGV, config = {})
#
def public_command(*names)
names.each do |name|
class_eval "def #{name}(*); super end"
class_eval "def #{name}(*); super end", __FILE__, __LINE__
end
end
alias_method :public_task, :public_command
Expand Down

0 comments on commit 264d8b5

Please sign in to comment.