I’m trying to map.from_plugin :my_engine in the routes.rb for my
The problem appears to be that at the time routes.rb has been processed
Engines plugin itself is loaded but my Engine has not.
On line 69 of lib/engines/rails_extensions/routing.rb:
routes_path = Engines.plugins[name].routes_path
Engines.plugins[name] is returning nil for my engine since it hasn’t
loaded yet, and it dies trying to call nil.routes_path. Perhaps this
raise ArgumentError or something if Engines.plugins[name] is nil…
At the time routes.rb is being processed, there’s only one entry in
@controller_paths=[“app/controllers”, “components”], @loaded=true,
@code_paths=[“app/controllers”, “app/helpers”, “app/models”,
Is there some way I can explicitly load my engine in environment.rb
this problem can be corrected?