« Writing a C++ extension for PHP 5 | Main | Paris Cassandra Meetup @Yakaz - October 8th 2013 »

12/17/2012

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Korn

I am creating a rails 3 gem for seotmhing similar to this today. It will allow you to add yaml config files to a top-level rails directory called yapp_config' and will automatically make the constants available to your app when you start the server. You can then access the constants using a namespace of the config file which will be camel cased. For instance, if you added user_contants.yml and app_constants.yml, you could access the constants by doing this:YappConfig::UserConstants.SOME_CONSTANTYappConfig::AppConstants.SOME_OTHER_CONSTANTHopefully I will get this posted to github and my blog later this afternoon.

The comments to this entry are closed.

My Photo
Blog's feed - Yakaz.com



Follow Yakaz