Method: Bmg::Relation::Proxy#method_missing

Defined in:
lib/bmg/relation/proxy.rb

#method_missing(name, *args, &bl) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/bmg/relation/proxy.rb', line 15

def method_missing(name, *args, &bl)
  if @relation.respond_to?(name)
    res = @relation.send(name, *args, &bl)
    res.is_a?(Relation) ? _proxy(res) : res
  else
    super
  end
end