Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

#initialize hack turned off since it produces errors in specs

  • Loading branch information...
commit 7d150db2be38fc3e71e1bc7a47c680d3707a1ca5 1 parent e2a1d20
@pietia pietia authored
Showing with 11 additions and 11 deletions.
  1. +11 −11 lib/dm-hibernate-adapter/hibernate.rb
View
22 lib/dm-hibernate-adapter/hibernate.rb
@@ -175,17 +175,17 @@ def self.included(model)
model.extend(ClassMethods)
- # this part is needed for the model A.create method to work
- model.class_eval <<-EOF
- alias :initialize_old :initialize
- def initialize(*args)
- if self.class.hibernate!
- self.class.new(*args)
- else
- initialize_old(*args)
- end
- end
-EOF
+# this part is needed for the model A.create method to work
+# model.class_eval <<-EOF
+# alias :initialize_old :initialize
+# def initialize(*args)
+# if self.class.hibernate!
+# self.class.new(*args)
+# else
+# initialize_old(*args)
+# end
+# end
+# EOF
unless model.mapped?
[:auto_migrate!, :auto_upgrade!, :create, :all, :copy, :first, :first_or_create, :first_or_new, :get, :last, :load].each do |method|
Please sign in to comment.
Something went wrong with that request. Please try again.