Methods

Class/Module Index [+]

Quicksearch

Sequel::Plugins::PreparedStatementsAssociations::ClassMethods

Public Instance Methods

associate(type, name, opts = {}, &block) click to toggle source

Disable prepared statement use if a block is given, or the :dataset or :conditions options are used, or you are cloning an association.

# File lib/sequel/plugins/prepared_statements_associations.rb, line 28
def associate(type, name, opts = {}, &block)
  if block || opts[:dataset] || opts[:conditions] || (opts[:clone] && association_reflection(opts[:clone])[:prepared_statement] == false)
    opts = opts.merge(:prepared_statement=>false)
  end
  super(type, name, opts, &block)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.