Class: ActiveRecord::Ingress::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/ingress/proxy.rb

Instance Method Summary collapse

Constructor Details

#initialize(record) ⇒ Proxy

Returns a new instance of Proxy.



2
3
4
# File 'lib/active_record/ingress/proxy.rb', line 2

def initialize(record)
  @__record__ = record
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name) ⇒ Object



6
7
8
# File 'lib/active_record/ingress/proxy.rb', line 6

def method_missing(name, ...)
  find_record_ingress_named(name).run(__record__, ...)
end