Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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 ryanb authored

Showing 1 changed file with 1 addition and 3 deletions. Show diff stats Hide diff stats

  1. +1 3 lib/cancan/model_adapters/data_mapper_adapter.rb
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 comments on commit 600a3e1

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