smerf icon indicating copy to clipboard operation
smerf copied to clipboard

Dependencies moved to ActiveSupport::Dependencies - causes installation of smerf to abort

Open sschroeder opened this issue 15 years ago • 1 comments

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

sschroeder avatar Jan 13 '10 15:01 sschroeder

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?

springbok avatar Jan 13 '10 22:01 springbok