Community Engine on Rails 2.1.1
Rails 2.1.1 moved module Dependencies to ActiveSupport::Dependencies. That made Community Engine fail to start on Rails 2.1.1 (it’s actually Rails Engines that fails to start). You’ll get this error:
Dependencies is not a module (TypeError)
To let Community Engine run, edit line 143 of vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:
Change
module ::Dependencies
to
module ActiveSupport::Dependencies
Sep 12 08, 9:00 pm
Works like a charm, thank you for the post James!
Oct 25 08, 11:49 am
Very useful. Thanks.
Oct 31 08, 6:43 pm
This has been fixed in the main plugin - apologies!
Nov 10 08, 3:35 pm
Worked like a charm! James, I just downloaded the latest copy of the plugin for 2.1.0, wasnt fixed in there :-/
Nov 10 08, 6:01 pm
@Sugam, as James said, the 2.1.0 has fixed this (I didn’t send him a patch when I first found this issue because the problem was caused by rails changing api and Engines might need to support old versions of rails).