I have a rails app on my virtual machine. environment is development and I work on it regularly. I pulled the code from the repo on a new nserver, and always with
config.autoload_paths << Rails.root.join('lib')
config.autoload_paths += Dir[Rails.root.join('app', 'api', '**', '**', '*')]
DKIM as a name will be problematic since the autoloader maps that to
d_k_i_m/ in the path. Whenever possible avoid creating directories or files with capital letters in them, it causes chaos on case sensitive filesystems.
app/api/domains/dkim/api.rb should contain
If you want to use some non-standard naming system you'll have to force load your stuff manually, the auto-loader won't do it for you.
The auto-load directive should probably be:
config.autoload_paths << Rails.root.join('app', 'api')
You don't want to be including every single file in your autoload path.