Module: Sequel::Plugins::ExternalId::InstanceMethods

Defined in:
lib/sequel/plugins/external_id.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject

Includes the external id in the super class' representation. This means you can include models in Log messages without having to explicitly fetch the id.



77
78
79
# File 'lib/sequel/plugins/external_id.rb', line 77

def to_s
  super.to_s + "[external_id:#{self.external_id}]"
end