Skip to content

Instantly share code, notes, and snippets.

View larsrottmann's full-sized avatar

Lars Rottmann larsrottmann

  • inovex GmbH
  • Düsseldorf, Germany
View GitHub Profile
@larsrottmann
larsrottmann / active_admin_mongomapper_patches.rb
Created February 15, 2012 10:34
Enable basic MongoMapper support in ActiveAdmin
# config/initializers/active_admin_mongomapper_patches.rb
require "active_admin"
require "active_admin/resource_controller"
require 'ostruct'
module ActiveAdmin
class Namespace
# Disable comments
def comments?