smerf
smerf copied to clipboard
Dependencies moved to ActiveSupport::Dependencies - causes installation of smerf to abort
I am using Rails 2.3.5
When I run db:migrate as part of the smerf installation steps, rake aborts with the error
undefined constant - Rails::Plugins::Dependencies
The fix is to change vendor/plugins/smerf/init.rb and vendor/plugins/smerf/generators/smerf/templates/smerf_init.rb so that Dependencies is written as ActiveSupport::Dependencies
The change is to where Dependencies is found is documented at http://whatdoesthiserrormean.com/errors/2540
I've not got Rails 2.3.5 installed so I can't test this but I've had a look at the init.rb and it does use ActiveSupport::Dependencies on the line "ActiveSupport::Dependencies.load_paths << file_path"
Is this the line where it fails or does it fail somewhere else?