Module Sequel::Model::Associations::InstanceMethods
In: lib/sequel/model/associations.rb

Private instance methods used to implement the associations support.

Methods

pk_or_nil  

Public Instance methods

Used internally by the associations code, like pk but doesn‘t raise an Error if the model has no primary key.

[Source]

     # File lib/sequel/model/associations.rb, line 842
842:         def pk_or_nil
843:           key = primary_key
844:           key.is_a?(Array) ? key.map{|k| @values[k]} : @values[key]
845:         end

[Validate]