Ruby on Rails
Thursday, November 19, 2015
On Wednesday, 18 November 2015 18:46:07 UTC, tamouse wrote:
This is for Rahoul, not the OP:
Rails 4.1 introduced the #config_for method on the Rails application,
which makes all the reading, erbing, and yamling of config files really
super simple. You can change your above initializer to:
Thanks Tamara - I must have completely missed that. It looks awesome.
I guess the OP would still need to do the ERB stuff by hand to get custom functions in there though.
Cheers
Rahoul
http://theartandscienceofruby.com/
--
Tamara Temple
tam...@gmail.com
http://www.tamouse.org
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/dfe56ae6-24ce-4a6c-9591-68f4a2040035%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment