Skip to content
This repository
Browse code

Merge pull request #410 from psanford/improve_datamapper_loading

Load datamapper class methods via append_extensions.
  • Loading branch information...
commit 600a3e16a50ae702682fe811a95c4f03c7fa34a2 2 parents 8f815c4 + ccd7a94
Ryan Bates authored July 01, 2011
4  lib/cancan/model_adapters/data_mapper_adapter.rb
@@ -31,6 +31,4 @@ def database_records
31 31
   end # module ModelAdapters
32 32
 end # module CanCan
33 33
 
34  
-DataMapper::Model.class_eval do
35  
-  include CanCan::ModelAdditions::ClassMethods
36  
-end
  34
+DataMapper::Model.append_extensions(CanCan::ModelAdditions::ClassMethods)

0 notes on commit 600a3e1

Please sign in to comment.
Something went wrong with that request. Please try again.