Module: ActsAsParanoid::Associations

Defined in:
lib/acts_as_paranoid/associations.rb

Overview

This module is included in ActiveRecord::Base to provide paranoid associations.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/acts_as_paranoid/associations.rb', line 6

def self.included(base)
  base.extend ClassMethods
  class << base
    alias_method :belongs_to_without_deleted, :belongs_to
    alias_method :belongs_to, :belongs_to_with_deleted
  end
end