问题描述:

I am creating a gem which requires a yml configuration file to be executed on load. But Rails.root is nil. My guess is Rails has not loaded and therefore does not have a root yet. How do I get Rails.root?

Or even passing a value to the gem on load would work too, if that's possible.

相关阅读:
Top