Skip to content

Commit

Permalink
Don't use monkeypathcing so kitties can stay alive.
Browse files Browse the repository at this point in the history
  • Loading branch information
pk committed Jul 22, 2009
1 parent 9acbbce commit 274af85
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions lib/merb_sequel.rb
Expand Up @@ -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.
Expand Down
14 changes: 9 additions & 5 deletions lib/sequel_ext/model.rb
@@ -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.