@kyanny's blog

My thoughts, my life. Views/opinions are my own.

Draper with MongoMapper

While Draper officially supports only ActiveRecord and Mongoid, you can integrate it with MongoMapper by one line.

config/initializers/draper.rb:

MongoMapper::Document.send(:include, Draper::Decoratable)