Class/Module Index [+]

Quicksearch

Sequel::Plugins::AssociationProxies::ClassMethods

Public Instance Methods

def_association_method(opts) click to toggle source

Changes the association method to return a proxy instead of the associated objects directly.

# File lib/sequel/plugins/association_proxies.rb, line 43
def def_association_method(opts)
  opts.returns_array? ? association_module_def(opts.association_method){|*r| AssociationProxy.new(self, opts, r[0])} : super
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.