Permalink
Browse files

'send' as a task name. #250

  • Loading branch information...
gutenye committed Sep 7, 2012
1 parent 54cbeb8 commit e3fbd24403625eab4c7dbceeb16bc64c65b52ced
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/thor/task.rb
View
@@ -24,9 +24,9 @@ def run(instance, args=[])
instance.class.handle_no_task_error(name)
elsif public_method?(instance)
arity = instance.method(name).arity
- instance.send(name, *args)
+ instance.__send__(name, *args)
elsif local_method?(instance, :method_missing)
- instance.send(:method_missing, name.to_sym, *args)
+ instance.__send__(:method_missing, name.to_sym, *args)
else
instance.class.handle_no_task_error(name)
end

0 comments on commit e3fbd24

Please sign in to comment.