Class: Sequel::Model
- Inherits:
-
Object
- Object
- Sequel::Model
- Defined in:
- lib/sequel_support.rb
Instance Method Summary collapse
-
#_load_associated_objects(opts) ⇒ Object
Return an empty array for *_to_many association methods for new model objects.
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 |