I have a Rails project that should use a different Git repository to handle part of the work with the backend. I brought the guys repository into my own and made it a submodule ( not sure if it was the right move) , so I have a folder called "submodule" in my project directory (that is, it is on the same as my application, bin, config folders).
To require all the functionality of the file in the submodule folder, I add the following to my application_controller.rb (using the require_all gem):
require_all 'submodule'
Here's my confusion: the submodule folder is a Rails application in itself, so it has an application folder, config, etc. I want to be able to use in my application any mail programs / controllers / helpers that the submodule folder uses . I know that I used them correctly, but how to refer to these classes / methods in my application? What is the syntax for this?
For example, the submodule has a delivery controller that includes the DeliveryProcessor class, and the DeliveryProcessor class has a method called deliver. How to call the delivery method of the DeliveryProcessor class in the my application controller ?
Sunny