Working fine in development but not in production with Unicorn
jonfer opened this issue · comments
Its working fine in development environment. But in production I get this error:
INFO -- : Refreshing Gem list
NoMethodError: undefined method `impersonates' for ApplicationCable::Connection:Class
In development I'm using puma and in production unicorn, is it possible that this doesn't work with unicorn?
I'd be very surprised if that was the case. Have you tried Unicorn in development?
I forgot to detail that the problem is only in ActionCable, looks like it doesn't load the Gem or something...
I tried to test it in development with Unicorn but my application needs Puma-dev with subdomains.
Cleaning up issues. If you get to the bottom of it, let me know.
Hi,
@ankane I've got the same issue in staging or production environments. You can reproduce it in local by adding config.eager_load = true
in development.rb
Seems like the impersonates method is called before your ActiveSupport.on_load(:action_cable)
callback ?
Thanks @verlinden, can you give master a shot?
@ankane I got the exact same issue in staging and production (for the same eager_load
config) and using the master version of pretenders fixed it. Thanks!
@ankane I confirm it's working fine now. Thanks 👍
Thank you both, just released a new version.