Class: ActiveRecord::Ingress::Proxy
- Inherits:
-
Object
- Object
- ActiveRecord::Ingress::Proxy
- Defined in:
- lib/active_record/ingress/proxy.rb
Instance Method Summary collapse
-
#initialize(record) ⇒ Proxy
constructor
A new instance of Proxy.
- #method_missing(name) ⇒ Object
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 |