I’m using a GEM of my own, which defines an application (appA) config variable (varA) in its initializers. However, I want the value of this variable (varA) to be used just as a default and I would like to create a method (metA) in the GEM (appA) which would give the possibility to override the value of the config variable (varA).
I want to call this method (metA) from the application which uses the GEM (appB).
Where should I place the method (metA)?
You could define the config variable as:
And override it in
config/initializers/your_gem.rb: