I'm working on a plugin for rails to provide some simple diagnostic information about external systems for purposes of monitoring etc. primarily as an exercise to learn more about rails.
I need to know where config variables for this type of rails plugin belongs, in this case I need to store an array of ip addresses and ports that point at these external services so that I can access it in my plugins controllers e.g.
['127.0.0.1:12345', '192.168.1.1:54321']
I'm currently using Rails 3.1.
You could create a new file in config/initializers, e.g. globals.rb:
EXTERNAL_SERVICE_IP_1 = "some ip"