Method: Sequel::Plugins::InsertConflict.configure

Defined in:
lib/sequel/plugins/insert_conflict.rb

.configure(model) ⇒ Object

[View source]

37
38
39
40
41
42
43
# File 'lib/sequel/plugins/insert_conflict.rb', line 37

def self.configure(model)
  model.instance_exec do
    if @dataset && !@dataset.respond_to?(:insert_conflict)
      raise Error, "#{self}'s dataset does not support insert_conflict"
    end
  end
end