Permalink
Browse files

use #resource_class (#resource is deprecated)

  • Loading branch information...
1 parent 5f770c6 commit 5ac84f567fdfe9ba2a613790e48ed4256441a968 @jpmckinney jpmckinney committed Jul 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/active_admin/mongoid/resource.rb
@@ -4,7 +4,7 @@
ActiveAdmin::Resource # autoload
class ActiveAdmin::Resource
def resource_table_name
- resource.collection_name
+ resource_class.collection_name
end
# Disable filters

0 comments on commit 5ac84f5

Please sign in to comment.