Module: ActsAsArchive::Base::Destroy
- Defined in:
- lib/acts_as_archive/base/destroy.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/acts_as_archive/base/destroy.rb', line 5 def self.included(base) unless base.included_modules.include?(InstanceMethods) base.class_eval do alias_method :destroy_without_callbacks!, :destroy_without_callbacks class <<self alias_method :delete_all!, :delete_all end end base.send :extend, ClassMethods base.send :include, InstanceMethods end end |