Say I have a gem, how do I get a event/subcriber t...
# support
v
Say I have a gem, how do I get a event/subcriber to work? It does not appear to autoload. Followed the example per the docs. Copying the file to subscribers/xxx_subscriber.rb works
s
if your gem is not a Solidus extension this might be helpful https://github.com/solidusio/solidus_support/blob/09bfde4e67496167aca79cf23f05c7d8333031ac/lib/solidus_support/engine_extensions.rb#L34 It sounds like what “works” in your case is copying the subscriber file out of your gem into {app root}/subscribers/