Merge pull request #410 from psanford/improve_datamapper_loading

Load datamapper class methods via append_extensions.
This commit is contained in:
Ryan Bates 2011-07-01 13:01:32 -07:00
commit 600a3e16a5

View File

@ -31,6 +31,4 @@ module CanCan
end # module ModelAdapters end # module ModelAdapters
end # module CanCan end # module CanCan
DataMapper::Model.class_eval do DataMapper::Model.append_extensions(CanCan::ModelAdditions::ClassMethods)
include CanCan::ModelAdditions::ClassMethods
end