Closed arjenbrandenburgh closed 7 years ago
That's a good catch however the implementation does not distinguish the event that'll be fired. Running:
batch.on(:complete, 'AnotherClass#method', 'uid' => current_user.id)
will run method
on both complete
and success
.
@cybey that's a good work. By any chance can you add a spec that covers the scenario when callback has a method name (specified with #
)?
Hey @cybey can you catch up with latest master? (It has the fixes related to codeclimate/simplecov). Thanks!
3