Displaying 2 results from an estimated 2 matches for "acts_as_xxxx".
Did you mean:
acts_as_xxx
2008 May 07
0
Calling a controller method with a rake task - plugin errors
...base/backup_auto''
end
end
-------------------------------------
When I run it I get an error about not finding an act_as_xxx which is
defined in a custom plugin:
/!\ FAILSAFE /!\ Thu May 08 00:05:47 +0200 2008
Status: 500 Internal Server Error
undefined local variable or method `acts_as_xxxx'' for
ApplicationController:Class
It''s my first rake task and I can''t quite get my head around the app
boot process. Why can''t it find the plugin in this case?
Thanks,
Russell.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~---...
2009 Mar 24
12
MonkeyPatching ActiveRecord::Base class
I am trying to monkey-patch the ActiveRecord::Base class to incorporate
a generic search class method so that it can be used by all model
classes which need this functionality. Since model classes directly
inherit from ActiveRecord::Base and unlike controllers and helpers, do
not have an ancestor class defined, I think I am forced to open the
ActiveRecord::Base class and patch it? May be I am