Module: Sequel::Plugins::Upsert
- Defined in:
- lib/sequel/plugins/upsert.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.configure(model, opts = OPTS) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/sequel/plugins/upsert.rb', line 5 def self.configure(model, opts=OPTS) model.instance_exec do @upsert_plugin_identifying_columns = opts.fetch(:identifying_columns) @upsert_plugin_ignore_columns_on_update = opts[:ignore_columns_on_update] end end |