Module Caboose::Acts::Paranoid::ActiveRecord::ClassMethods
In: lib/acts_as_paranoid.rb

Methods

Included Modules

InstanceMethods

External Aliases

find -> original_find
count -> count_with_deleted
with_scope -> clobbering_with_scope

Public Instance methods

[Source]

    # File lib/acts_as_paranoid.rb, line 48
48:           def acts_as_paranoid
49:             unless paranoid? # don't let AR call this twice
50:               alias_method :destroy_without_callbacks!, :destroy_without_callbacks
51:               class << self
52:                 alias_method :original_find, :find
53:                 alias_method :count_with_deleted, :count
54:                 alias_method :clobbering_with_scope, :with_scope
55:               end
56:             end
57:             include InstanceMethods
58:           end

[Source]

    # File lib/acts_as_paranoid.rb, line 60
60:           def paranoid?
61:             self.included_modules.include?(InstanceMethods)
62:           end

[Validate]