Rodrigo Vieira wrote in post #1059873:
> Well, I'd create a file and put it in /lib and include/initialize that
> file in the config.ru file before the actual app initialization (run
> YourApp::Application).


That worked! The problem is that this is only working when rails app 
starts, not on rake tasks or test/units.

But from now on, what I need for my application is ok.



Just to know... Is it possible to do add those methods on the entire 
application? (not only on the middleware)

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to