Class: Sequel::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/sequel_support.rb

Instance Method Summary collapse

Instance Method Details

#_load_associated_objects(opts) ⇒ Object

Return an empty array for *_to_many association methods for new model objects



18
19
20
# File 'lib/sequel_support.rb', line 18

def _load_associated_objects(opts)
  opts.returns_array? && new? ? [] : super
end