Forum: Ruby on Rails Configuration for libraries/plugins

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C9c7a65848f13e2b1a226bbe43bc3672?d=identicon&s=25 Pete Yandell (pete)
on 2006-03-08 02:57
(Received via mailing list)
Is there any way to piggy-back off the Rails::Configuration stuff to
set config variables for your own libraries and plugins in
environment.rb? If it's possible, is it a good idea? If it's not
possible, are there any other good examples of really neat ways to do
this?

There should really be a standard approach for doing this, given that
the last thing you want to do when looking at new code is struggle to
work out where the config lives. Currently I'm using my own little
library for this, but it's not very nice, and certainly not very
standard.

The big requirement is that a library or plugin should be able to
define a default value for a config variable, which can then be
easily overridden in environment.rb.

Cheers,

Pete.
This topic is locked and can not be replied to.