What is the best way to store app specific configuration in rails?

后端 未结 6 614
心在旅途
心在旅途 2020-12-30 14:56

I need to store app specific configuration in rails. But it has to be:

  • reachable in any file (model, view, helpers and controllers
  • environment specifi
6条回答
  •  庸人自扰
    2020-12-30 15:10

    Look at Configatron: http://github.com/markbates/configatron/tree/master

    I have yet to use it, but he's actively developing it now, and looks quite nice.

提交回复
热议问题