Use 'config.to_prepare' in your init.rb to include your module at the
start of every request in development mode. See my RailsConf
presentation for more details:
http://www.slideshare.net/railsconf/the-even-darker-art-of-rails-engines-presentation

 - James

On May 27, 7:03 am, 冷血儿 <[email protected]> wrote:
> I tried that way. It doesn't work even first request.
>
> 2009/5/27 Neo <[email protected]>
>
>
>
>
>
> > 试试ActionController::Base.send :inlcude,AcPlugin
>
> > --
> > 明天会更好
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to