In our applications we sometimes need to initialize global vars or rails predefined values. Whenever we want to do that, we just need to create files in the directory
config/initializers/
instead of messing with the environment.rb file.
Source:
Ryan's Scraps: What's New in Edge Rails: Stop Littering In Your Environment File
No comments:
Post a Comment