module Cequel::Util::Forwardable
Rails defines the `delegate` method directly on the `Module` class, meaning that `Forwardable#delegate` overrides it any time a class extends `Forwardable`.
This module provides the methods Cequel
uses from Forwardable
, specifically `#def_delegator` and `#def_delegators`, but reverts the implementation of `#delegate` back to the one defined by ActiveSupport.
Public Instance Methods
delegate(*args, &block)
click to toggle source
Calls superclass method
# File lib/cequel/util.rb, line 67 def delegate(*args, &block) return super if args.one? Module.instance_method(:delegate).bind(self).call(*args, &block) end