Thank you Fred and Greg.  You both are right.  I had a similar load 
configuration block as Greg shows here in my environment file in the 
application where it worked fine and had forgotten all about it.  For 
this little application, I put the following statement at the end of 
config/environment.rb:

  require "#{RAILS_ROOT}/lib/active_record_extensions.rb"

And everything works fine.  I was under the impression that everything 
in the lib directory gets loaded automatically which is apparently an 
incorrect assumption.

Question is: what is the significance of the "lib" directory then in a 
Rails environment?  If it just gets added in the Rails load path and 
nothing else then it leaves me scratching my head.  Either don't put in 
the load path automatcially or if we do then load whatever is in there 
automatically too.  Don't you think Rails is at odds with itself here?

Bharat
-- 
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 [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