Permalink
Browse files

Merge pull request #259 from shingara/dm-aggregates

require 'dm-aggregates' in DataMapper hook

closes #202
  • Loading branch information...
2 parents 5ffcf45 + ed77a22 commit a8637f2d1ece175c25b76a6936341da444ea27ac @amatsuda committed Sep 2, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/kaminari/hooks.rb
View
1 lib/kaminari/hooks.rb
@@ -8,6 +8,7 @@ def self.init
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

0 comments on commit a8637f2

Please sign in to comment.