Closed cshupp1 closed 8 years ago
This is implemented in the upcoming Rails 5 release. Thanks for the code. Hopefully someone will find it useful. Previous versions used celluloid and I submitted a PR to have it supported but it was not accepted.
This impl leaks. Please see this updated impl if you are using this lib in JRuby:
Currently, in sucker_punch_adapter.rb, the class SuckerPunchAdapter has the following method and implementation:
This means when using with ActiveJob (rails 4.2.x) that syntax like this:
will not function.
Here is a monkey patch that works in JRuby. I have the following initializer file 'sucker_punch.rb':
Syntax like:
works in JRuby.
Cris