Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@ryanb ryanb authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/cancan/model_adapters/data_mapper_adapter.rb
View
4 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)
Please sign in to comment.
Something went wrong with that request. Please try again.