Skip to content
Browse files

removing an unnecessary module

  • Loading branch information...
1 parent 3e8e00f commit 54ae1ac98345a15ab058d49640cefacaa52738b5 Jeffrey Chupp committed May 8, 2009
Showing with 2 additions and 8 deletions.
  1. +2 −8 lib/is_paranoid.rb
View
10 lib/is_paranoid.rb
@@ -22,14 +22,8 @@ def is_paranoid opts = {}
# and self.find_with_destroyed defined in the module ClassMethods)
default_scope :conditions => {destroyed_field => field_not_destroyed}
- include ClassAndInstanceMethods
- end
-
- module ClassAndInstanceMethods
- def self.included(host_class)
- host_class.extend ClassMethods
- host_class.send(:include, InstanceMethods) #since include is a private method in ActiveRecord::Base
- end
+ extend ClassMethods
+ include InstanceMethods
end
module ClassMethods

0 comments on commit 54ae1ac

Please sign in to comment.
Something went wrong with that request. Please try again.