All,
I have a rails controller that is requiring a ruby file
ie
res = require ''blee''
p res.inspect # <= [] ??
class FredController < ApplicationController
....
end
Printing the return value of the require, I was expecting to see
true or false whether
the required ruby file was previously loaded or not. Instead it
seems to always return an array.
On the first load an array with the module name for blee and on
reload an empty array...
As anyone experienced this before ?
Thanks !!
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---