module Sequel::Plugins::ThroughAssociations::PrependClassMethods

This ensures that our definition of associate jumps the stack

Public Instance Methods

associate(type, name, opts = OPTS, &block) click to toggle source
Calls superclass method
# File lib/sequel/plugins/through_associations.rb, line 27
def associate type, name, opts = OPTS, &block

  # Handle associations that are based on others
  if opts[:through] && !type.to_s.include?("_through_")
    return associate_through type, name, opts, &block
  end

  super

end