Skip to content

Instantly share code, notes, and snippets.

@arsduo
Created June 15, 2012 12:14
Show Gist options
  • Select an option

  • Save arsduo/2936175 to your computer and use it in GitHub Desktop.

Select an option

Save arsduo/2936175 to your computer and use it in GitHub Desktop.
???
1.9.2p290 :007 > Mongoid::Document.send(:include, ActiveModel::SerializerSupport)
=> Mongoid::Document
1.9.2p290 :008 > Mongoid::Document.include?(ActiveModel::SerializerSupport)
=> false
1.9.2p290 :009 > Mongoid::Document.included_modules
=> [ProprietaryModule]
1.9.2p290 :014 > Mongoid::Document.ancestors
=> [Mongoid::Document, ProprietaryModule]
@arsduo
Copy link
Author

arsduo commented Jun 15, 2012

I'm on ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.3.0]. I can't rule out that it has something to do with all the other gems (including Rails) that I'm loading...but on the plus side, I've figured out how to do what I need to do in Mongoid 3 without having to switch serializers, so while I'd like to do that and figure this out, it's a lot less urgent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment