module ActiveRecord::Timestamp

Private Instance Methods

_create_record() click to toggle source
Calls superclass method
# File lib/active_record/connection_adapters/kudu_adapter.rb, line 32
def _create_record
  if record_timestamps
    current_time = current_time_from_proper_timezone
    all_timestamp_attributes_in_model.each do |column|
      # force inserting of current time for timestamp columns if is needed
      write_attribute(column, current_time)
    end
  end
  super
end