How do you know what app he's using now?
-
There is a system, including a number of applications that communicate with each other on REST. Let's say two applications use one hem. One of them sends REST a request that triggers the work of the hem, because we cause the rout described by the hem. How is it most important to identify the gem app we're addressing?
-
Inside controllers are available to the helper
main_app
♪ Through this chopper, it's possible to contact the choppers of the main application.Engine
(I understood that your gem is a built-in app,Engine
)For each application, it's possible to identify a unique key, put it in the configuration, and write a helper that returns it. And that helper should be treated from your hip.
Engine
e.g.:main_app.helper_with_app_key