Module: Sequel::Plugins::InsertIgnore::InstanceMethods
- Defined in:
- lib/sequel/plugins/insert_ignore.rb
Instance Method Summary collapse
Instance Method Details
#insert_ignore(opts = {}) ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/sequel/plugins/insert_ignore.rb', line 23 def insert_ignore(opts = {}) save(opts) load_values_from_previously_inserted_object unless id self rescue Sequel::NoExistingObject load_values_from_previously_inserted_object self end |