Permalink
Browse files

Don't use monkeypathcing so kitties can stay alive.

  • Loading branch information...
1 parent 9acbbce commit 274af851b3ef2bb8cbbbee63df1d0498eff18f82 @pk committed Jul 22, 2009
Showing with 11 additions and 5 deletions.
  1. +2 −0 lib/merb_sequel.rb
  2. +9 −5 lib/sequel_ext/model.rb
View
@@ -4,6 +4,8 @@
require File.join(File.dirname(__FILE__) / "merb" / "orms" / "sequel" / "connection")
Merb::Plugins.add_rakefiles "merb_sequel" / "merbtasks"
+ Sequel::Model.send(:include, Merb::Orms::Sequel::ModelExtensions)
+
# Connects to the database and handles session
#
# Connects to the database and loads sequel sessions if we use them.
View
@@ -1,7 +1,11 @@
-module Sequel
- class Model
- def new_record?
- self.new?
+module Merb
+ module Orms
+ module Sequel
+ module ModelExtensions
+ def new_record?
+ self.new?
+ end
+ end
end
end
-end
+end

0 comments on commit 274af85

Please sign in to comment.