Module: Humanoid::Associations::Proxy

Included in:
BelongsTo, BelongsToRelated, HasMany, HasManyRelated, HasOne, HasOneRelated
Defined in:
lib/humanoid/associations/proxy.rb

Overview

:nodoc

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

def self.included(base)
  base.class_eval do
    instance_methods.each do |method|
      undef_method(method) unless method =~ /(^__|^nil\?$|^send$|^object_id$|^extend$)/
    end
    include InstanceMethods
  end
end