GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Added 'use_orm :dm_core' option to use datamapper 0.9.0 with the dm-merb 
gem from dm-more
benburkert (author)
Mon Apr 07 12:51:10 -0700 2008
commit  07fc6048093c4122cac22ea6068c0f06ef3984c5
tree    03e83c790f016497312dacacaaa4b4d2200bfa6a
parent  64b6b14d03e6905b1705b0eaf1bb33524fa026e3
...
120
121
122
123
 
 
 
 
 
 
124
125
126
...
120
121
122
 
123
124
125
126
127
128
129
130
131
0
@@ -120,7 +120,12 @@ module Kernel
0
     end
0
     begin
0
       Merb.generator_scope.delete(:merb_default)
0
- orm_plugin = orm.to_s.match(/^merb_/) ? orm.to_s : "merb_#{orm}"
0
+ orm_plugin = case orm.to_s
0
+ when /^merb_/ then orm.to_s
0
+ when 'dm_core' then 'dm-merb'
0
+ else "merb_#{orm}"
0
+ end
0
+
0
       Merb.generator_scope.unshift(orm.to_sym) unless Merb.generator_scope.include?(orm.to_sym)
0
       Kernel.dependency(orm_plugin)
0
     rescue LoadError => e

Comments

    No one has commented yet.