Module: TemporalTables::Whodunnit::InstanceMethods

Defined in:
lib/temporal_tables/whodunnit.rb

Instance Method Summary collapse

Instance Method Details

#set_updated_byObject



14
15
16
17
18
# File 'lib/temporal_tables/whodunnit.rb', line 14

def set_updated_by
  return unless TemporalTables.updated_by_proc && respond_to?(:updated_by)

  self.updated_by = TemporalTables.updated_by_proc.call(self)
end