Permalink
Browse files

Merge pull request #410 from psanford/improve_datamapper_loading

Load datamapper class methods via append_extensions.
  • Loading branch information...
2 parents 8f815c4 + ccd7a94 commit 600a3e16a50ae702682fe811a95c4f03c7fa34a2 @ryanb committed Jul 1, 2011
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
-end
+DataMapper::Model.append_extensions(CanCan::ModelAdditions::ClassMethods)

0 comments on commit 600a3e1

Please sign in to comment.