fixed bug with require module in rails application