I am executing some scripts from the script directory.
script files:
----------------------
script1:
require File.dirname(__FILE__) + ''/../config/boot''
require File.dirname(__FILE__) + ''/../config/environment''
module DataLoad
end
---------------------
script 2 being executed:
---------------------------------------
require File.dirname(__FILE__) + ''/../config/boot''
require File.dirname(__FILE__) + ''/../config/environment''
classB.generate
------------------------------------
classes in model dir:
class A
include DataLoad
end
class B < class A
def self.generate
end
Error executing the script2:
`const_missing'': uninitialized constant AvailabilityReport::DataLoad
(NameError)
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.