What is the best place to store globals in Rails app?

Posted by Nick Gorbikoff on Stack Overflow See other posts from Stack Overflow or by Nick Gorbikoff
Published on 2010-04-19T21:08:04Z Indexed on 2010/04/19 21:13 UTC
Read the original article Hit count: 148

Hello.

I was wondering if there is the best practice on where to store global settings in a rails app. What I mean by that is i.e: I have a few globals defined that may change, but not likely and it seems inappropriate to store them in DB since they are used so much. For instance I have SYSTEM_EMAIL & SYSTEM_EMAIL_SIGNATURE & SYSTEM_STORAGE_ROOT.

Right now I keep them in environment.rb, but I'm not sure if this is the right palce to store them.

Thank you

© Stack Overflow or respective owner

Related posts about ruby

Related posts about ruby-on-rails