Permalink
Browse files

Merge pull request #12 from jpmckinney/resource_deprecated

use #resource_class (#resource is deprecated)
  • Loading branch information...
2 parents 9c877bb + 5ac84f5 commit d3d05ee9f005a01b7e19b4a5c98ee912f4e5a263 @elia elia committed Jul 5, 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
end

0 comments on commit d3d05ee

Please sign in to comment.