Merge pull request #410 from psanford/improve_datamapper_loading
Load datamapper class methods via append_extensions.
This commit is contained in:
commit
600a3e16a5
|
@ -31,6 +31,4 @@ module CanCan
|
|||
end # module ModelAdapters
|
||||
end # module CanCan
|
||||
|
||||
DataMapper::Model.class_eval do
|
||||
include CanCan::ModelAdditions::ClassMethods
|
||||
end
|
||||
DataMapper::Model.append_extensions(CanCan::ModelAdditions::ClassMethods)
|
||||
|
|
Loading…
Reference in New Issue
Block a user