Figured it out:
Rails 2.3 has a problem with requiring any files within the initializer
block as shown below.
Rails::Initializer.run do |config|
require "#{RAILS_ROOT}/lib/active_record_extensions.rb"
end
Instead, it wants you to put your require statement outside the block as
shown below:
Rails::Initializer.run do |config|
.....
end
require "#{RAILS_ROOT}/lib/active_record_extensions.rb"
This works. Why is it so? I do not know. If someone can explain this,
I would appreciate it.
Thanks.
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
-~----------~----~----~----~------~----~------~--~---