Closed colindean closed 13 years ago
I added the basics of this in commit 3f61d56938190cb1b91af51ee19aeb9cc6696d13, but it still needs a better editing interface than the standard crap rails generate scaffold
provides. I'd like it to operate like how Firefox's about:config
works.
Anything that goes in the Pcfg database is expected to be admin-user-editable. If you need to introduce a constant which no user/admin should ever need to modify, put it in config/initializers/plas_constants.rb
.
I'll file a new enhancement issue about making the editing of pcfgs pretty later on. Closing this, as Pcfg works as I want it to work on the backend as of 493009f10e07d352582036ff17bb75e42fc6558f. It could still use some unit tests, though...
It's quite common in PHP apps to have a Config static class or global object which accesses key-value configurations in the database or an ini file. I need to uncover what is the "Ruby way" of doing this, that is, if it's any different.