bug fix: was always requiring both mongoid & rails

the defined? guards were checking string literals rather than constants, so were always returning true.  

(for the case of Mongoid this meant that symbolize/mongoid was always being included, which as a side effect caused the constant ::Mongoid to be defined, which then broke other gems which likewise checked for the existence of that constant before doing mongo-specific things which failed because Mongoid wasn't really loaded)