I can not find any documentation on how to do the following: I need to provide a configuration variable for any applications using my engine so that they can easily transfer settings to my engine.
Does anyone have any links to the correct or acceptable way to do this?
EDIT: As an update, I came up with a decent way to do this. The code is below.
This allows any application using my engine to configure it, as shown below, in any of their initializers or in the environment.rb file, by calling any methods defined in the MyEngine::Configuration class:
MyEngine.config do |config| config.some_configuration_option = "Whatever" end
ruby-on-rails-3 configuration rails-engines
Topher fangio
source share