diff --git a/lib/kaminari/hooks.rb b/lib/kaminari/hooks.rb index 514ae7f..d330d31 100644 --- a/lib/kaminari/hooks.rb +++ b/lib/kaminari/hooks.rb @@ -8,6 +8,7 @@ module Kaminari begin; require 'data_mapper'; rescue LoadError; end if defined? ::DataMapper + require 'dm-aggregates' require 'kaminari/models/data_mapper_extension' ::DataMapper::Collection.send :include, Kaminari::DataMapperExtension::Collection ::DataMapper::Model.append_extensions Kaminari::DataMapperExtension::Model