public
Description: Uber lightweight Merb blogging engine. Make sure you check out the feather-plugins repo as well!
Clone URL: git://github.com/mleung/feather.git
Click here to lend your support to: feather and make a donation at www.pledgie.com !
merb_paginate compatibility with dm 0.3 and dm 0.9
Alexander Flatter (author)
Wed May 14 11:41:01 -0700 2008
commit  489e50fdd8374befe46330fa870c48772ae189af
tree    06203f64abcce172cea2d667a22bb3f0cf0b4d68
parent  bb957f119a9780471c261d8265dcc5d3ebda3ac8
...
4
5
6
7
 
 
 
8
9
10
...
4
5
6
 
7
8
9
10
11
12
0
@@ -4,7 +4,9 @@ require 'merb_paginate/core_ext'
0
 
0
 if Object.const_defined? "DataMapper"
0
   require 'merb_paginate/finders/datamapper'
0
- DataMapper::Base.class_eval { include MerbPaginate::Finders::Datamapper }
0
+ # better than using Gem.loaded_specs as RubyGems is not required
0
+ target = DataMapper.const_defined?('Base') ? 'Base' : 'Resource'
0
+ DataMapper::const_get(target).class_eval { include MerbPaginate::Finders::Datamapper }
0
 end
0
 
0
 if Object.const_defined? "Sequel"

Comments

    No one has commented yet.