You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to require a file that resides in the modified autoload_paths does not get loaded correctly. If I move the autoload_paths modification into the application config file however it works fine.
config.autoload_paths is accessible from environment-specific configuration files, but any changes made to it outside config/application.rb don't have an effect.
Possibly this was locked down due to security concerns?
The text was updated successfully, but these errors were encountered:
In the section on adapting plugins (https://github.com/alindeman/upgradingtorails4/blob/master/text/05_plugins.markdown) it describes setting up an initializer for the plugin and updating autoload_paths in the initializer as follows.
ActiveSupport::Dependencies.autoload_paths << "#{Rails.root}/lib/acts_as_tree/lib"
Trying to require a file that resides in the modified autoload_paths does not get loaded correctly. If I move the autoload_paths modification into the application config file however it works fine.
I noticed in the Rails Guides on autoloading availability (http://guides.rubyonrails.org/autoloading_and_reloading_constants.html#autoloading-availability) the following is mentioned.
Possibly this was locked down due to security concerns?
The text was updated successfully, but these errors were encountered: