Permalink
Browse files

Fix initialization (more learning...)

  • Loading branch information...
1 parent f86bdb6 commit 2f5df7bdb2538e8475304a01f1f3e6f151cba1ed @copyhacker copyhacker committed Dec 7, 2010
Showing with 3 additions and 4 deletions.
  1. BIN gravelpup-rails3_acts_as_paranoid-0.0.4.gem
  2. +0 −3 init.rb
  3. +3 −1 lib/rails3_acts_as_paranoid.rb
View
BIN gravelpup-rails3_acts_as_paranoid-0.0.4.gem
Binary file not shown.
View
3 init.rb
@@ -1,4 +1 @@
require 'rails3_acts_as_paranoid'
-require 'validations/uniqueness_without_deleted'
-
-ActiveRecord::Base.send :extend, ParanoidValidations::ClassMethods
View
4 lib/rails3_acts_as_paranoid.rb
@@ -1,4 +1,5 @@
require 'active_record'
+require 'validations/uniqueness_without_deleted'
module ActsAsParanoid
def acts_as_paranoid(options = {})
@@ -66,4 +67,5 @@ def recover
end
# Extend ActiveRecord's functionality
-ActiveRecord::Base.extend ActsAsParanoid
+ActiveRecord::Base.send :extend, ActsAsParanoid
+ActiveRecord::Base.send :extend, ParanoidValidations::ClassMethods

0 comments on commit 2f5df7b

Please sign in to comment.