Bug with Rails env variable from module

Hello. It's change working for me. You may include it into repository that more people could use it. Thanks.