I’m having problem with the RMagick requires – my dev and prod systems
each only work with a different require line (require ‘rmagick’ on OSX
dev; require ‘RMagick’ on FC5 prod). After many many hours wasted trying
to figure out WHY they are acting differently, I’m cutting my losses and
going with a hack, like this:
begin
puts “RMagick was loaded properly on startup.” if Magick
rescue NameError
require ‘RMagick’
puts “RMagick loaded after startup with require ‘RMagick’.”
end
This works. However, because one of my plugins (validates_captcha) needs
RMagick, I can’t put that code in environment.rb, which is run after
the plugins are loaded. Is there a way to inject this block before the
plugins are loaded?
Thanks!
/afb