Browse files

Load datamapper class methods via append_extensions.

This relaxes the previous requirement that cancan has to be loaded
before any models are. append_extensions will apply to all
previously loaded models as well as ones loaded after.
  • Loading branch information...
psanford committed Jul 1, 2011
1 parent 8f815c4 commit ccd7a94d4022651e1911a352b4d2d9cf9e4e6da9
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/cancan/model_adapters/data_mapper_adapter.rb
@@ -31,6 +31,4 @@ def database_records
end # module ModelAdapters
end # module CanCan
-DataMapper::Model.class_eval do
- include CanCan::ModelAdditions::ClassMethods

0 comments on commit ccd7a94

Please sign in to comment.