module Sequel::Plugins::AssociationProxies::ClassMethods
Attributes
Proc that accepts a method name, array of arguments, and block and should return a truthy value to send the method to the dataset instead of the array of associated objects.
Private Instance Methods
Source
# File lib/sequel/plugins/association_proxies.rb 119 def def_association_method(opts) 120 if opts.returns_array? 121 association_module_def(opts.association_method, opts) do |dynamic_opts=OPTS, &block| 122 AssociationProxy.new(self, opts, dynamic_opts, &block) 123 end 124 else 125 super 126 end 127 end
Changes the association method to return a proxy instead of the associated objects directly.
Calls superclass method