Undefined method `alias_method_chain' for Rails::Initializer:Class
Reported by Oliver Miller | July 12th, 2008 @ 01:21 PM
Hi Aaron,
First of all, thank you for creating this plugin. I installed it in order to use 'has_messages' and it all works fine when doing 'script/server'. However, all other scripts (generate, console, about, etc.) generate the following error (or a similar one):
Loading development environment (Rails 2.1.0)
./vendor/plugins/plugins_plus/lib/plugins_plus/app_integration/extensions/initializer.rb:8:in `included':NoMethodError: undefined method `alias_method_chain' for Rails::Initializer:Class
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:93:NoMethodError: undefined method `cattr_accessor' for ActionController::Dispatcher:Class
/Users/oliver/Sites/foo/app/controllers/application.rb:4:NameError: uninitialized constant ActionController::Base
Am I being a complete idiot? I have added the following lines to the top of environment.rb as instructed:
require 'config/boot'
require 'vendor/plugins/plugins_plus/boot'
Do you have any idea what is going on? I am a bit of a newbie, but I find it puzzling that the server script is fine, but the others are strangely affected.
All the best, Oliver.
Comments and changes to this ticket
-
Aaron Pfeifer July 13th, 2008 @ 02:14 PM
- → State changed from new to open
Great catch! An issue with the testing framework actually hid this problem, which is why I suspect I never ran into it myself. A fix is on its way. Thanks for taking the time to provide a detailed explanation :)
-
Aaron Pfeifer July 13th, 2008 @ 02:40 PM
- → State changed from open to resolved
(from [e4fdcb79394221334e6c8852ea0e660ac8e209ad]) Remove dependencies on ActiveSupport when it hasn't been loaded yet [#1 state:resolved]
-

Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Adds various abilities to plugins, including asset management, migrations, and application code integration
