yuki24/active_admin — comment on commit 96bf393b624f443a566845d6be3125b4f9c30f74
File:  line 0
By thierryhenrio:

where does this #to_adapter should be defined ?

it crashes my app!

=> Ctrl-C to shutdown server
Exiting
/Users/thenrio/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/activerecord-3.1.0/lib/active_record/base.rb:1082:in `method_missing': undefined method `to_adapter' for # (NoMethodError)
from /Users/thenrio/src/ruby/active_admin/lib/active_admin/resource.rb:58:in `initialize'
from /Users/thenrio/src/ruby/active_admin/lib/active_admin/resource/action_items.rb:11:in `initialize'
from /Users/thenrio/src/ruby/active_admin/lib/active_admin/resource/sidebars.rb:9:in `initialize'
from /Users/thenrio/src/ruby/active_admin/lib/active_admin/model_extensions/mongoid_extension/resource_helper.rb:5:in `initialize'
from /Users/thenrio/src/ruby/active_admin/lib/active_admin/namespace.rb:118:in `new'
from /Users/thenrio/src/ruby/active_admin/lib/active_admin/namespace.rb:118:in `find_or_build_resource'
from /Users/thenrio/src/ruby/active_admin/lib/active_admin/namespace.rb:46:in `register'
from /Users/thenrio/src/ruby/active_admin/lib/active_admin/comments.rb:23:in `block in '