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
--
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
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
-~----------~----~----~----~------~----~------~--~---