The context :
I have a rails engine (gem) that uses omniauth inside it to authenticate the users for the entire engine. Then, that engine is used by a regular rails application.
I am using Rails 3.1.3 and Ruby 1.9.2.
The question :
In my application that uses my engine (which in turn uses omniauth), where should the omniauth.rb file be located?
- In the engine’s
initializersfolder? - In the regular application
initializersfolder? - In some kind of engine folder in my regular application, such as
initializers/engine_name?
you should place it in: