JorgeDDW PRO said over 3 years ago on 10 Tips and Tricks :
This is so awesome!

Andrey Ilyunin said over 3 years ago on 10 Tips and Tricks :
Thanks!

Btw, there is a config_for for configs: https://api.rubyonrails.org/classes/Rails/Application.html#method-i-config_for

David Kimura PRO said over 3 years ago on 10 Tips and Tricks :
Nice   ! That is definitely a more Convention over Configuration way to handle loading configs. Love it!

I think the episode example is useful for non-rails apps (ruby scripts or other frameworks), but I would definitely prefer config_for in Rails apps.

Login to Comment