Permalink
Browse files

#initialize hack turned off since it produces errors in specs

  • Loading branch information...
1 parent e2a1d20 commit 7d150db2be38fc3e71e1bc7a47c680d3707a1ca5 @pietia pietia committed Sep 30, 2011
Showing with 11 additions and 11 deletions.
  1. +11 −11 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|

0 comments on commit 7d150db

Please sign in to comment.