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 ModelAdapters
|
||||||
end # module CanCan
|
end # module CanCan
|
||||||
|
|
||||||
DataMapper::Model.class_eval do
|
DataMapper::Model.append_extensions(CanCan::ModelAdditions::ClassMethods)
|
||||||
include CanCan::ModelAdditions::ClassMethods
|
|
||||||
end
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user