Method: Queryable::ClassMethods#delegate

Defined in:
lib/queryable.rb

#delegate(*methods) ⇒ Object

Public: Delegates the specified methods to the internal query.



39
40
41
# File 'lib/queryable.rb', line 39

def delegate(*methods)
  methods.last.is_a?(Hash) ? super : def_delegators(:query, *methods)
end